Callback type for hooks. Receives spread args + ctx as last param.
type BeforeRequest = HookCallback<(url: string, opts: RequestInit) => Promise<Response>>; // (url: string, opts: RequestInit, ctx: HookContext) => void | EarlyReturnSignal | Promise<...> Copy
type BeforeRequest = HookCallback<(url: string, opts: RequestInit) => Promise<Response>>; // (url: string, opts: RequestInit, ctx: HookContext) => void | EarlyReturnSignal | Promise<...>
Callback type for hooks. Receives spread args + ctx as last param.