diff --git a/types/got/index.d.ts b/types/got/index.d.ts index 0ceb6b945c..c0a162331e 100644 --- a/types/got/index.d.ts +++ b/types/got/index.d.ts @@ -138,7 +138,7 @@ declare namespace got { * @param options Normalized request options. * @param retryWithMergedOptions Retries request with the updated options. */ - type AfterResponseHook = ( + type AfterResponseHook = ( response: Response, retryWithMergedOptions: (updateOptions: Options) => GotPromise ) => Response | Promise>;