mirror of
https://github.com/axios/axios.git
synced 2026-04-11 14:21:59 +08: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:
parent
12faca87e0
commit
205bd0f01d
2
index.d.ts
vendored
2
index.d.ts
vendored
@ -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>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user