mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
add missing xhr parameter to promise callbacks. (#11761)
This commit is contained in:
committed by
Masahiro Wakame
parent
927c3555e0
commit
7a69d8a56f
Vendored
+2
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user