mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 22:35:23 +08:00
add option dictFileSizeUnits (#20997)
This commit is contained in:
committed by
Sheetal Nandi
parent
aeba5ae685
commit
e533e6944b
@@ -56,6 +56,7 @@ const dropzoneWithOptions = new Dropzone(".test", {
|
||||
dictRemoveFile: "",
|
||||
dictRemoveFileConfirmation: "",
|
||||
dictMaxFilesExceeded: "",
|
||||
dictFileSizeUnits: { tb: "", gb: "", mb: "", kb: "", b: "" },
|
||||
|
||||
accept: (file: Dropzone.DropzoneFile, done: (error?: string | Error) => void) => {
|
||||
if (file.accepted) {
|
||||
|
||||
9
types/dropzone/index.d.ts
vendored
9
types/dropzone/index.d.ts
vendored
@@ -26,6 +26,14 @@ declare namespace Dropzone {
|
||||
accepted: boolean;
|
||||
xhr?: XMLHttpRequest;
|
||||
}
|
||||
|
||||
export interface DropzoneDictFileSizeUnits {
|
||||
tb?: string;
|
||||
gb?: string;
|
||||
mb?: string;
|
||||
kb?: string;
|
||||
b?: string;
|
||||
}
|
||||
|
||||
export interface DropzoneOptions {
|
||||
url?: string;
|
||||
@@ -72,6 +80,7 @@ declare namespace Dropzone {
|
||||
dictRemoveFile?: string;
|
||||
dictRemoveFileConfirmation?: string;
|
||||
dictMaxFilesExceeded?: string;
|
||||
dictFileSizeUnits?: DropzoneDictFileSizeUnits;
|
||||
|
||||
accept?(file: DropzoneFile, done: (error?: string | Error) => void): void;
|
||||
init?(): void;
|
||||
|
||||
Reference in New Issue
Block a user