mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Write defition for JQueryXHR.then method.
Working on borisyankov/DefinitelyTyped#2314
This commit is contained in:
1 parent
459de60914
commit
fc628f15ad
1 file changed
+4
Vendored
+4
@@ -168,6 +168,10 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
|
||||
*/
|
||||
overrideMimeType(mimeType: string): any;
|
||||
abort(statusText?: string): void;
|
||||
/**
|
||||
* Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to deferred.then() for implementation details.
|
||||
*/
|
||||
then(doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => void, failCallback: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void): JQueryPromise<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user