add missing xhr parameter to promise callbacks. (#11761)

This commit is contained in:
Finn Poppinga
2016-10-06 23:41:15 +09:00
committed by Masahiro Wakame
parent 927c3555e0
commit 7a69d8a56f
+2 -3
View File
@@ -56,12 +56,11 @@ declare namespace Qwest {
}
interface Promise {
/** Request is successful */
then(callback: (response: any) => any): Promise;
then(callback: (xhr: any, response?: any) => any): Promise;
/** Request has failed */
catch(callback: (e: any, response: any) => any): Promise;
catch(callback: (e: any, xhr? : any, response?: any) => any): Promise;
/** Always run */
complete(callback: () => any): Promise;