Updated "then" within interface JQueryXHR

Updated "then" within the JQueryXHR interface - details are visible here: https://github.com/borisyankov/DefinitelyTyped/issues/2492

Sorry if this isn't the right way. This is my very first pull request.
This commit is contained in:
Ciel
2014-07-10 10:52:50 -05:00
parent fec70605c3
commit 9d7f8f967d
+1 -1
View File
@@ -176,7 +176,7 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
/**
* 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>;
then(doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => void, failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void): JQueryPromise<any>;
/**
* Property containing the parsed response if the response Content-Type is json
*/