2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +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:
Michael Li
2022-05-03 11:43:37 -05:00
committed by GitHub
parent 8fb0f2689d
commit 8213da4f16
Vendored
+1
View File
@@ -242,6 +242,7 @@ export interface AxiosStatic extends AxiosInstance {
Cancel: CancelStatic;
CancelToken: CancelTokenStatic;
Axios: typeof Axios;
AxiosError: typeof AxiosError;
readonly VERSION: string;
isCancel(value: any): boolean;
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;