mirror of
https://github.com/tenrok/axios.git
synced 2026-05-30 15:24:11 +03:00
Make AxiosError.config optional in the type definition (#4665)
It is optional in the constructor, and not always defined. Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Vendored
+1
-1
@@ -148,7 +148,7 @@ export class AxiosError<T = unknown, D = any> extends Error {
|
||||
response?: AxiosResponse<T, D>
|
||||
);
|
||||
|
||||
config: AxiosRequestConfig<D>;
|
||||
config?: AxiosRequestConfig<D>;
|
||||
code?: string;
|
||||
request?: any;
|
||||
response?: AxiosResponse<T, D>;
|
||||
|
||||
Reference in New Issue
Block a user