mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08:00
Update success signature.
The success method can return either a json object or a string object in dropzone 4.0.1. Dropzone checks the type and if it's application/json it automatically converts it to json.
This commit is contained in:
1 parent
dc9dabe74a
commit
3930e52ab5
1 file changed
+1
-1
Vendored
+1
-1
@@ -96,7 +96,7 @@ interface DropzoneOptions {
|
||||
sending?(file:DropzoneFile, xhr:XMLHttpRequest, formData:{}):void;
|
||||
sendingmultiple?(files:DropzoneFile[], xhr:XMLHttpRequest, formData:{}):void;
|
||||
|
||||
success?(file:DropzoneFile, responseText:string):void;
|
||||
success?(file: DropzoneFile, response: Object|string): void;
|
||||
successmultiple?(files:DropzoneFile[], responseText:string):void;
|
||||
|
||||
canceled?(file:DropzoneFile):void;
|
||||
|
||||
Reference in new issue
Block a user