Skip to content

Commit

Permalink
Fixed type definition of use method on AxiosInterceptorManager to mat…
Browse files Browse the repository at this point in the history
…ch the the README (#5071)

* fixed type definition use method on AxiosInterceptorManager to match the README

* fixed parentheses issues with type

Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
amitsainii and jasonsaayman committed Oct 30, 2022
1 parent ae31394 commit 448e1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -416,7 +416,7 @@ export interface AxiosInterceptorOptions {
}

export interface AxiosInterceptorManager<V> {
use(onFulfilled?: (value: V) => V | Promise<V>, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number;
use(onFulfilled?: ((value: V) => V | Promise<V>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number;
eject(id: number): void;
clear(): void;
}
Expand Down

0 comments on commit 448e1fc

Please sign in to comment.