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:
Vendored
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user