diff --git a/qwest/qwest.d.ts b/qwest/qwest.d.ts index e493073402793e..3f0c9c10cb95a6 100644 --- a/qwest/qwest.d.ts +++ b/qwest/qwest.d.ts @@ -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;