Skip to content

Commit

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

Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
hippo2cat and jasonsaayman committed May 14, 2021
1 parent 49509f6 commit 69949a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
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 69949a6

Please sign in to comment.