mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +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:
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