From 205bd0f01d9b081e752acc2548b20b2438df4ec3 Mon Sep 17 00:00:00 2001 From: Bertrand Marron Date: Tue, 3 May 2022 18:37:51 +0200 Subject: [PATCH] Make AxiosError.config optional in the type definition (#4665) It is optional in the constructor, and not always defined. Co-authored-by: Jay --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0b9e1d35c9..97e64e6cae 100644 --- a/index.d.ts +++ b/index.d.ts @@ -148,7 +148,7 @@ export class AxiosError extends Error { response?: AxiosResponse ); - config: AxiosRequestConfig; + config?: AxiosRequestConfig; code?: string; request?: any; response?: AxiosResponse;