Skip to content

Commit

Permalink
add additional type to onCancel gap
Browse files Browse the repository at this point in the history
  • Loading branch information
rssilva committed Nov 11, 2024
1 parent 29f5f4e commit 236ee86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/Dropzone/Dropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type DropzoneProps = {
/** This is the function that gets triggered when a file is dropped */
onDrop: (files: FileWithPath[]) => void;
/** This is the function that gets triggered when the cancel button is clicked */
onCancel: (files: FileWithPath[]) => void;
onCancel: (files: FileWithPath[] | readonly FileWithPath[]) => void;
/** This is an error if there is one. string */
error?: string;
/** The file types allowed. In the format of an object.{ "application/pdf": [".pdf"] } */
Expand Down

0 comments on commit 236ee86

Please sign in to comment.