We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
AfterResponseHook
1 parent 0ec0c0f commit 6fc04a9Copy full SHA for 6fc04a9
source/as-promise/types.ts
@@ -121,7 +121,7 @@ export interface PaginationOptions<T, R> {
121
};
122
}
123
124
-export type AfterResponseHook = (response: Response, retryWithMergedOptions: (options: Options) => CancelableRequest<Response>) => Response | CancelableRequest<Response> | Promise<Response | CancelableRequest<Response>>;
+export type AfterResponseHook<ResponseType = unknown> = (response: Response<ResponseType>, retryWithMergedOptions: (options: Options) => CancelableRequest<Response>) => Response | CancelableRequest<Response> | Promise<Response | CancelableRequest<Response>>;
125
126
// These should be merged into Options in core/index.ts
127
export namespace PromiseOnly {
0 commit comments