Skip to content

Commit

Permalink
Updating typing for AxiosPromise (#4505)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
phloose and jasonsaayman committed May 3, 2022
1 parent 484443f commit 3479ca7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.d.ts
Expand Up @@ -170,8 +170,7 @@ export class AxiosError<T = unknown, D = any> extends Error {
export class CanceledError<T> extends AxiosError<T> {
}

export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
}
export type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;

export interface CancelStatic {
new (message?: string): Cancel;
Expand Down

0 comments on commit 3479ca7

Please sign in to comment.