From 381ae95a1b5503e710133c84525a33cbbb2a2355 Mon Sep 17 00:00:00 2001 From: Thomas Guillory Date: Wed, 2 Sep 2015 14:33:41 +0200 Subject: [PATCH] FIX typescript definition to correctly type promise callbacks --- axios.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axios.d.ts b/axios.d.ts index 4c64531..877e0d1 100644 --- a/axios.d.ts +++ b/axios.d.ts @@ -26,8 +26,8 @@ declare module axios { } interface Promise { - then(response: axios.Response): axios.Promise; - catch(response: axios.Response): axios.Promise; + then(onFulfilled:(response: axios.Response) => void): axios.Promise; + catch(onRejected:(response: axios.Response) => void): axios.Promise; } interface RequestOptions {