mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +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;
|
||||
}
|
||||
|
||||
export interface AxiosError extends Error {
|
||||
export interface AxiosError<T = any> extends Error {
|
||||
config: AxiosRequestConfig;
|
||||
code?: string;
|
||||
request?: any;
|
||||
response?: AxiosResponse;
|
||||
response?: AxiosResponse<T>;
|
||||
isAxiosError: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user