Skip to content

Commit

Permalink
Fixing an issue that type 'null' and 'undefined' is not assignable to…
Browse files Browse the repository at this point in the history
… validateStatus when typescript strict option is enabled
  • Loading branch information
cprayer committed Aug 14, 2020
1 parent ffea034 commit fe85e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -62,7 +62,7 @@ export interface AxiosRequestConfig {
onUploadProgress?: (progressEvent: ProgressEvent) => void;
onDownloadProgress?: (progressEvent: ProgressEvent) => void;
maxContentLength?: number;
validateStatus?: ((status: number) => boolean | null);
validateStatus?: ((status: number) => boolean) | null | undefined;
maxBodyLength?: number;
maxRedirects?: number;
socketPath?: string | null;
Expand Down

0 comments on commit fe85e35

Please sign in to comment.