mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
fix(type): add AxiosError to AxiosStatic (#4654)
https://github.com/axios/axios/blob/master/lib/axios.js#L47 Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Vendored
+1
@@ -242,6 +242,7 @@ export interface AxiosStatic extends AxiosInstance {
|
|||||||
Cancel: CancelStatic;
|
Cancel: CancelStatic;
|
||||||
CancelToken: CancelTokenStatic;
|
CancelToken: CancelTokenStatic;
|
||||||
Axios: typeof Axios;
|
Axios: typeof Axios;
|
||||||
|
AxiosError: typeof AxiosError;
|
||||||
readonly VERSION: string;
|
readonly VERSION: string;
|
||||||
isCancel(value: any): boolean;
|
isCancel(value: any): boolean;
|
||||||
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
||||||
|
|||||||
Reference in New Issue
Block a user