8000 Adding custom return type support to interceptor (#3783) · darth-coder-js/axios@69949a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69949a6

Browse files
Adding custom return type support to interceptor (axios#3783)
close axios#3448 Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent 49509f6 commit 69949a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export interface CancelTokenSource {
130130
}
131131

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

0 commit comments

Comments
 (0)
0