Merge pull request #2493 from ciel/master

Updated "then" within interface JQueryXHR
This commit is contained in:
John Reilly
2014-07-10 17:07:52 +01:00
+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
*/