Skip to content

Commit

Permalink
Adding custom return type support to interceptor (axios#3783)
Browse files Browse the repository at this point in the history
close axios#3448

Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
hippo2cat and jasonsaayman authored May 14, 2021
1 parent e002cec commit 9c01075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export interface CancelTokenSource {
}

export interface AxiosInterceptorManager<V> {
use(onFulfilled?: (value: V) => V | Promise<V>, onRejected?: (error: any) => any): number;
use<T = V>(onFulfilled?: (value: V) => T | Promise<T>, onRejected?: (error: any) => any): number;
eject(id: number): void;
}

Expand Down

0 comments on commit 9c01075

Please sign in to comment.