Type Alias BeforeRequestHook
BeforeRequestHook: (
request: KyRequest,
options: NormalizedOptions,
) => Request | Response | void | Promise<Request | Response | void>
Type declaration
- (
request: KyRequest,
options: NormalizedOptions,
): Request | Response | void | Promise<Request | Response | void> Parameters
- request: KyRequest
- options: NormalizedOptions
Returns Request | Response | void | Promise<Request | Response | void>