mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix: add isCancel type assert (#4293)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Vendored
+1
-1
@@ -292,7 +292,7 @@ export interface AxiosStatic extends AxiosInstance {
|
|||||||
Axios: typeof Axios;
|
Axios: typeof Axios;
|
||||||
AxiosError: typeof AxiosError;
|
AxiosError: typeof AxiosError;
|
||||||
readonly VERSION: string;
|
readonly VERSION: string;
|
||||||
isCancel(value: any): boolean;
|
isCancel(value: any): value is Cancel;
|
||||||
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
||||||
spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
|
spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
|
||||||
isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
|
isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
|
||||||
|
|||||||
Reference in New Issue
Block a user