mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
jquery.fileupload
added `add` callback signature (was `any`) changed `fail` callback signature (JQueryFileInputOptions => JQueryFileUploadDone) added JQueryFileUploadXhr.errorThrown field
This commit is contained in:
5
jquery.fileupload/index.d.ts
vendored
5
jquery.fileupload/index.d.ts
vendored
@@ -198,7 +198,7 @@ interface JQueryFileInputOptions {
|
||||
* handlers using jQuery's Deferred callbacks:
|
||||
* data.submit().done(func).fail(func).always(func);
|
||||
*/
|
||||
add?: any;
|
||||
add?: (e: JQueryEventObject, data: JQueryFileInputOptions) => void;
|
||||
|
||||
// The plugin options are used as settings object for the ajax calls.
|
||||
// The following are jQuery ajax settings required for the file uploads:
|
||||
@@ -228,7 +228,7 @@ interface JQueryFileInputOptions {
|
||||
// Other callbacks:
|
||||
submit?: Function;
|
||||
done?: (e: JQueryEventObject, data: JQueryFileUploadDone) => void;
|
||||
fail?: (e: JQueryEventObject, data: JQueryFileInputOptions) => void;
|
||||
fail?: (e: JQueryEventObject, data: JQueryFileUploadDone) => void;
|
||||
always?: (e: JQueryEventObject, data: JQueryFileInputOptions) => void;
|
||||
progressall?: (e: JQueryEventObject, data: JQueryFileUploadProgressAllObject) => void;
|
||||
start?: (e: JQueryEventObject) => void;
|
||||
@@ -284,6 +284,7 @@ interface JQueryFileUploadXhr {
|
||||
jqXHR: JQueryXHR;
|
||||
result: any;
|
||||
textStatus: string;
|
||||
errorThrown: any;
|
||||
headers: {[key: string]: any};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user