Skip to content

Commit

Permalink
use FileWithPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingsong Xiong committed May 4, 2022
1 parent d164104 commit 8bae3a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 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 @@ -66,8 +67,8 @@ export type DropzoneState = DropzoneRef & {
isDragAccept: boolean;
isDragReject: boolean;
isFileDialogActive: boolean;
draggedFiles: (File & { path?: string })[];
acceptedFiles: (File & { path?: string })[];
draggedFiles: FileWithPath[];
acceptedFiles: FileWithPath[];
fileRejections: FileRejection[];
rootRef: React.RefObject<HTMLElement>;
inputRef: React.RefObject<HTMLInputElement>;
Expand Down

0 comments on commit 8bae3a1

Please sign in to comment.