mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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