mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Adding isAxiosError flag to errors thrown by axios (#1419)
This commit is contained in:
committed by
Khaled Garbaya
parent
c0b40650d1
commit
b681e919c4
Vendored
+1
@@ -81,6 +81,7 @@ export interface AxiosError extends Error {
|
||||
code?: string;
|
||||
request?: any;
|
||||
response?: AxiosResponse;
|
||||
isAxiosError: boolean;
|
||||
}
|
||||
|
||||
export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
|
||||
|
||||
Reference in New Issue
Block a user