2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

Merge pull request #105 from thomasguillory/fix/ts-definition

FIX typescript definition to correctly type promise callbacks
This commit is contained in:
Matt Zabriskie
2015-09-23 12:00:07 -06:00
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 {