2
0
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:
Nick Uraltsev
2017-03-14 19:23:05 -07:00
parent fe810b1e3c
commit 3704d57ed4
5 changed files with 8 additions and 19 deletions
Vendored
-6
View File
@@ -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> {
}