2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Fixing an issue that type 'null' is not assignable to validateStatus (#2773)

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Taemin Shin
2020-05-28 02:18:28 +09:00
committed by GitHub
parent 029c36e193
commit b03f16159e
Vendored
+1 -1
View File
@@ -62,8 +62,8 @@ export interface AxiosRequestConfig {
onUploadProgress?: (progressEvent: ProgressEvent) => void; onUploadProgress?: (progressEvent: ProgressEvent) => void;
onDownloadProgress?: (progressEvent: ProgressEvent) => void; onDownloadProgress?: (progressEvent: ProgressEvent) => void;
maxContentLength?: number; maxContentLength?: number;
validateStatus?: ((status: number) => boolean | null);
maxBodyLength?: number; maxBodyLength?: number;
validateStatus?: (status: number) => boolean;
maxRedirects?: number; maxRedirects?: number;
socketPath?: string | null; socketPath?: string | null;
httpAgent?: any; httpAgent?: any;