2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Fixed type definition of use method on AxiosInterceptorManager to match the the README (#5071)

* fixed type definition use method on AxiosInterceptorManager to match the README

* fixed parentheses issues with type

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Amit Saini
2022-10-30 22:36:29 +05:30
committed by GitHub
parent ae31394848
commit 448e1fcdec
Vendored
+1 -1
View File
@@ -416,7 +416,7 @@ export interface AxiosInterceptorOptions {
}
export interface AxiosInterceptorManager<V> {
use(onFulfilled?: (value: V) => V | Promise<V>, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number;
use(onFulfilled?: ((value: V) => V | Promise<V>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number;
eject(id: number): void;
clear(): void;
}