2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix: add isCancel type assert (#4293)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
chenjigeng
2022-05-18 13:38:52 +08:00
committed by GitHub
parent bd58c4e89b
commit 63e559fa60
Vendored
+1 -1
View File
@@ -292,7 +292,7 @@ export interface AxiosStatic extends AxiosInstance {
Axios: typeof Axios;
AxiosError: typeof AxiosError;
readonly VERSION: string;
isCancel(value: any): boolean;
isCancel(value: any): value is Cancel;
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;