From 7a69d8a56fc31251ebcb04dbe8f7d58f7078b75f Mon Sep 17 00:00:00 2001 From: Finn Poppinga Date: Thu, 6 Oct 2016 16:41:15 +0200 Subject: [PATCH] add missing xhr parameter to promise callbacks. (#11761) --- qwest/qwest.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qwest/qwest.d.ts b/qwest/qwest.d.ts index e493073402..3f0c9c10cb 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;