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:
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user