mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Makes Axios error generic to use AxiosResponse (#1738)
This commit is contained in:
committed by
Emily Morehouse
parent
283d7b306c
commit
047501f708
Vendored
+2
-2
@@ -76,11 +76,11 @@ export interface AxiosResponse<T = any> {
|
|||||||
request?: any;
|
request?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AxiosError extends Error {
|
export interface AxiosError<T = any> extends Error {
|
||||||
config: AxiosRequestConfig;
|
config: AxiosRequestConfig;
|
||||||
code?: string;
|
code?: string;
|
||||||
request?: any;
|
request?: any;
|
||||||
response?: AxiosResponse;
|
response?: AxiosResponse<T>;
|
||||||
isAxiosError: boolean;
|
isAxiosError: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user