From b03f16159eac889baba067ff1e53e8701c86728e Mon Sep 17 00:00:00 2001 From: Taemin Shin Date: Thu, 28 May 2020 02:18:28 +0900 Subject: [PATCH] Fixing an issue that type 'null' is not assignable to validateStatus (#2773) Co-authored-by: Xianming Zhong 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 250191e3bd..74b2acd2cc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -62,8 +62,8 @@ export interface AxiosRequestConfig { onUploadProgress?: (progressEvent: ProgressEvent) => void; onDownloadProgress?: (progressEvent: ProgressEvent) => void; maxContentLength?: number; + validateStatus?: ((status: number) => boolean | null); maxBodyLength?: number; - validateStatus?: (status: number) => boolean; maxRedirects?: number; socketPath?: string | null; httpAgent?: any;