mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added the definition of the "axios-cancel" package
This commit is contained in:
parent
e1a37a8340
commit
988834998d
@ -1,7 +1,7 @@
|
||||
import axios, { AxiosPromise } from "axios"
|
||||
import axiosCancel from "axios-cancel";
|
||||
|
||||
axiosCancel(axios);
|
||||
axiosCancel(axios); // $ExpectType void
|
||||
|
||||
axios.get(
|
||||
'https://jsonplaceholder.typicode.com/users', {
|
||||
@ -9,4 +9,6 @@ axios.get(
|
||||
}
|
||||
); // $ExpectType Promise<any>
|
||||
|
||||
axios.cancel("test id");
|
||||
axios.cancel("test id"); // $ExpectType void
|
||||
|
||||
axios.cancelAll(); // $ExpectType void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user