Skip to content

Commit

Permalink
Makes Axios error generic to use AxiosResponse (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanla13a authored and emilyemorehouse committed May 7, 2019
1 parent 283d7b3 commit 047501f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -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;
}

Expand Down

0 comments on commit 047501f

Please sign in to comment.