From c3083fd0c7731695105642ebec98c3bdd91a137d Mon Sep 17 00:00:00 2001 From: Michael Li Date: Thu, 28 Apr 2022 16:50:01 -0500 Subject: [PATCH] fix(type): add AxiosError to AxiosStatic https://github.com/axios/axios/blob/master/lib/axios.js#L47 --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index 0b9e1d35c9..675ec61121 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;