mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
FIX typescript definition to correctly type promise callbacks
This commit is contained in:
Vendored
+2
-2
@@ -26,8 +26,8 @@ declare module axios {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface Promise {
|
interface Promise {
|
||||||
then(response: axios.Response): axios.Promise;
|
then(onFulfilled:(response: axios.Response) => void): axios.Promise;
|
||||||
catch(response: axios.Response): axios.Promise;
|
catch(onRejected:(response: axios.Response) => void): axios.Promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RequestOptions {
|
interface RequestOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user