mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Removing Promise from axios typings in favor of built-in type declarations
This commit is contained in:
Vendored
-6
@@ -58,12 +58,6 @@ export interface AxiosError extends Error {
|
||||
response?: AxiosResponse;
|
||||
}
|
||||
|
||||
export interface Promise<V> {
|
||||
then<R1, R2>(onFulfilled: (value: V) => R1 | Promise<R1>, onRejected: (error: any) => R2 | Promise<R2>): Promise<R1 | R2>;
|
||||
then<R>(onFulfilled: (value: V) => R | Promise<R>): Promise<R>;
|
||||
catch<R>(onRejected: (error: any) => R | Promise<R>): Promise<R>;
|
||||
}
|
||||
|
||||
export interface AxiosPromise extends Promise<AxiosResponse> {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user