Skip to content

Commit

Permalink
Fix:use FileWithPath replace File
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingsong Xiong committed May 4, 2022
1 parent 2556af7 commit f8f5a42
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions typings/react-dropzone.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from "react";

export { FileWithPath } from "file-selector";
import { FileWithPath } from "file-selector";
export { FileWithPath };
export default function Dropzone(
props: DropzoneProps & React.RefAttributes<DropzoneRef>
): JSX.Element;
Expand All @@ -23,7 +24,7 @@ export interface FileError {
}

export interface FileRejection {
file: File;
file: FileWithPath;
errors: FileError[];
}

Expand Down Expand Up @@ -68,7 +69,8 @@ export type DropzoneState = DropzoneRef & {
isDragAccept: boolean;
isDragReject: boolean;
isFileDialogActive: boolean;
acceptedFiles: File[];
draggedFiles: FileWithPath[];
acceptedFiles: FileWithPath[];
fileRejections: FileRejection[];
rootRef: React.RefObject<HTMLElement>;
inputRef: React.RefObject<HTMLInputElement>;
Expand Down

0 comments on commit f8f5a42

Please sign in to comment.