From 448e1fcdec46eeea5e6031332cb3c0918000f3ed Mon Sep 17 00:00:00 2001 From: Amit Saini <60218780+amitsainii@users.noreply.github.com> Date: Sun, 30 Oct 2022 22:36:29 +0530 Subject: [PATCH] Fixed type definition of use method on AxiosInterceptorManager to match the the README (#5071) * fixed type definition use method on AxiosInterceptorManager to match the README * fixed parentheses issues with type Co-authored-by: Jay --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }