2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Adding custom return type support to interceptor (#3783)

close #3448

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
hippo
2021-05-14 22:08:36 +08:00
committed by GitHub
parent 49509f6e95
commit 69949a6c16
Vendored
+1 -1
View File
@@ -130,7 +130,7 @@ export interface CancelTokenSource {
}
export interface AxiosInterceptorManager<V> {
use(onFulfilled?: (value: V) => V | Promise<V>, onRejected?: (error: any) => any): number;
use<T = V>(onFulfilled?: (value: V) => T | Promise<T>, onRejected?: (error: any) => any): number;
eject(id: number): void;
}