Skip to content

Commit 6f0e826

Browse files
authored
fix: allow validator to be null
1 parent ebe2130 commit 6f0e826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/react-dropzone.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export type DropzoneOptions = Pick<React.HTMLProps<HTMLElement>, PropTypes> & {
3434
onDropRejected?: (fileRejections: FileRejection[], event: DropEvent) => void;
3535
getFilesFromEvent?: (event: DropEvent) => Promise<Array<File | DataTransferItem>>;
3636
onFileDialogCancel?: () => void;
37-
validator?: <T extends File>(file: T) => FileError | FileError[];
37+
validator?: <T extends File>(file: T) => FileError | FileError[] | null;
3838
};
3939

4040
export type DropEvent = React.DragEvent<HTMLElement> | React.ChangeEvent<HTMLInputElement> | DragEvent | Event;

0 commit comments

Comments
 (0)