Skip to content

Commit

Permalink
Fixing isAxiosError typings to take generics
Browse files Browse the repository at this point in the history
  • Loading branch information
latipun7 committed Dec 2, 2021
1 parent 6b4fd93 commit 9513d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export interface AxiosStatic extends AxiosInstance {
isCancel(value: any): boolean;
all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
isAxiosError(payload: any): payload is AxiosError;
isAxiosError<T = any>(payload: any): payload is AxiosError<T>;
}

declare const axios: AxiosStatic;
Expand Down

0 comments on commit 9513d8d

Please sign in to comment.