mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
require interceptors to return values (#4874)
Fixes #4873 Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Vendored
+1
-1
@@ -343,7 +343,7 @@ export interface AxiosInterceptorOptions {
|
||||
}
|
||||
|
||||
export interface AxiosInterceptorManager<V> {
|
||||
use<T = V>(onFulfilled?: (value: V) => T | Promise<T>, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number;
|
||||
use(onFulfilled?: (value: V) => V | Promise<V>, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number;
|
||||
eject(id: number): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user