From 8213da4f1650730964a2a65031a6c9a5b353c0fc Mon Sep 17 00:00:00 2001 From: Michael Li Date: Tue, 3 May 2022 11:43:37 -0500 Subject: [PATCH] fix(type): add AxiosError to AxiosStatic (#4654) https://github.com/axios/axios/blob/master/lib/axios.js#L47 Co-authored-by: Jay --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index 97e64e6cae..d984f1d4ca 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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(values: Array>): Promise;