diff --git a/axios.d.ts b/axios.d.ts index 2655b95..e335ed1 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 {