diff --git a/index.d.ts b/index.d.ts index c028ca4..b2b2766 100644 --- a/index.d.ts +++ b/index.d.ts @@ -176,8 +176,13 @@ export interface CancelTokenSource { cancel: Canceler; } +export interface AxiosInterceptorOptions { + synchronous?: boolean; + runWhen?: (config: AxiosRequestConfig) => boolean; +} + export interface AxiosInterceptorManager { - use(onFulfilled?: (value: V) => T | Promise, onRejected?: (error: any) => any): number; + use(onFulfilled?: (value: V) => T | Promise, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number; eject(id: number): void; }