2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-02 16:04:10 +03:00

FIX typescript definition to correctly type promise callbacks

This commit is contained in:
Thomas Guillory
2015-09-02 14:33:41 +02:00
parent 8c1694e821
commit 381ae95a1b
Vendored
+2 -2
View File
@@ -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 {