Skip to content

Commit

Permalink
fix(type): add AxiosError to AxiosStatic (#4654)
Browse files Browse the repository at this point in the history
https://github.com/axios/axios/blob/master/lib/axios.js#L47

Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
michael-land and jasonsaayman committed May 3, 2022
1 parent 8fb0f26 commit 8213da4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Expand Up @@ -242,6 +242,7 @@ export interface AxiosStatic extends AxiosInstance {
Cancel: CancelStatic;
CancelToken: CancelTokenStatic;
Axios: typeof Axios;
AxiosError: typeof AxiosError;
readonly VERSION: string;
isCancel(value: any): boolean;
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
Expand Down

0 comments on commit 8213da4

Please sign in to comment.