react-dropzone
Advanced tools
Comparing version 10.1.4 to 10.1.5
@@ -168,3 +168,3 @@ { | ||
}, | ||
"version": "10.1.4", | ||
"version": "10.1.5", | ||
"engines": { | ||
@@ -171,0 +171,0 @@ "node": ">= 8" |
import * as React from "react"; | ||
export { FileWithPath } from "file-selector"; | ||
export default function Dropzone(props: DropzoneProps & React.RefAttributes<DropzoneRef>): JSX.Element; | ||
@@ -20,5 +21,5 @@ export function useDropzone(options?: DropzoneOptions): DropzoneState; | ||
disabled?: boolean; | ||
onDrop?(acceptedFiles: File[], rejectedFiles: File[], event: DropEvent): void; | ||
onDropAccepted?(files: File[], event: DropEvent): void; | ||
onDropRejected?(files: File[], event: DropEvent): void; | ||
onDrop?<T extends File>(acceptedFiles: T[], rejectedFiles: T[], event: DropEvent): void; | ||
onDropAccepted?<T extends File>(files: T[], event: DropEvent): void; | ||
onDropRejected?<T extends File>(files: T[], event: DropEvent): void; | ||
getFilesFromEvent?(event: DropEvent): Promise<Array<File | DataTransferItem>>; | ||
@@ -25,0 +26,0 @@ onFileDialogCancel?(): void; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
334591
4961