-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Description
Summary
In index.d.ts, the AxiosResponse is a generic
export interface AxiosResponse<T = any> {
data: T;
status: number;
statusText: string;
headers: any;
config: AxiosRequestConfig;
request?: any;
}
Shouldn't AxiosError also be a generic as it can have a response that is AxiosResponse?
export interface AxiosError<T> extends Error {
config: AxiosRequestConfig;
code?: string;
request?: any;
response?: AxiosResponse<T>;
}
kanoshin, sbdchd, asrytis, PeterL1n and SnowFlowers
Metadata
Metadata
Assignees
Labels
No labels