diff --git a/index.d.ts b/index.d.ts index ecd5c85247..0b1f1c7fcb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -416,7 +416,7 @@ export interface AxiosInterceptorOptions { } export interface AxiosInterceptorManager { - use(onFulfilled?: (value: V) => V | Promise, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number; + use(onFulfilled?: ((value: V) => V | Promise) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number; eject(id: number): void; clear(): void; }