InterfaceAxiosInterceptorManager<V>
interface AxiosInterceptorManager<V> { clear(): void; eject(id: number): void; use(onFulfilled?: ((value: V) => V | Promise<V>),
onRejected?: ((error: any) => any),
options?: AxiosInterceptorOptions): number; } Methods
clear
- clear(): void
Returns void
eject
- eject(id): void
Returns void
use
- use(onFulfilled?, onRejected?, options?): number
Parameters
Optional
onFulfilled: ((value: V) => V | Promise<V>)- (value): V | Promise<V>
Returns V | Promise<V>
Optional
onRejected: ((error: any) => any)Optional
options: AxiosInterceptorOptions
Returns number