2
0
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:
Suman Lama
2019-05-07 12:14:57 -07:00
committed by Emily Morehouse
parent 283d7b306c
commit 047501f708
Vendored
+2 -2
View File
@@ -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;
} }