2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-23 20:40:40 +03:00

Updating typing for AxiosPromise (#4505)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Philipp Loose
2022-05-03 21:07:09 +02:00
committed by GitHub
parent 484443f251
commit 3479ca7c76
Vendored
+1 -2
View File
@@ -170,8 +170,7 @@ export class AxiosError<T = unknown, D = any> extends Error {
export class CanceledError<T> extends AxiosError<T> { 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 { export interface CancelStatic {
new (message?: string): Cancel; new (message?: string): Cancel;