Skip to content
Permalink
Browse files

Makes Axios error generic to use AxiosResponse (#1738)

  • Loading branch information
sumanla13a authored and emilyemorehouse committed May 7, 2019
1 parent 283d7b3 commit 047501f7083665e0924f2680846fd8721e6de50d
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.d.ts
@@ -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;
}

0 comments on commit 047501f

Please sign in to comment.
You can’t perform that action at this time.