Added the definition of the "axios-cancel" package

This commit is contained in:
TheDSCPL 2019-04-10 17:44:35 +01:00 committed by Luis
parent e1a37a8340
commit 988834998d

View File

@ -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