From 7d433aba7d1d3276b7b5a95c9d0651e3f1456cde Mon Sep 17 00:00:00 2001 From: Tommaso Madonia Date: Mon, 17 May 2021 15:31:57 +0100 Subject: [PATCH] Add AxiosInterceptorOptions to d.ts --- index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 78f733f890..e968041547 100644 --- a/index.d.ts +++ b/index.d.ts @@ -129,8 +129,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; }