diff --git a/source/known-hook-events.ts b/source/known-hook-events.ts index 9f0932411..a39866ac0 100644 --- a/source/known-hook-events.ts +++ b/source/known-hook-events.ts @@ -39,7 +39,7 @@ Called with [response object](https://github.com/sindresorhus/got#response) and Each function should return the response. This is especially useful when you want to refresh an access token. */ -export type AfterResponseHook = (response: Response, retryWithMergedOptions: (options: NormalizedOptions) => CancelableRequest) => Response | CancelableRequest; +export type AfterResponseHook = (response: Response, retryWithMergedOptions: (options: NormalizedOptions) => CancelableRequest) => Response | CancelableRequest | Promise>; export type HookType = | BeforeErrorHook