ResponseInterceptor
Type Alias: ResponseInterceptor
Section titled “Type Alias: ResponseInterceptor”ResponseInterceptor = (
response) =>Response|undefined|Promise<Response|undefined>
Defined in: packages/fetch-kit/src/types.ts:49
A function that runs after a response is received but before the body is parsed. Receives the response and may return a different response or undefined to leave unchanged.
Parameters
Section titled “Parameters”response
Section titled “response”Response
Returns
Section titled “Returns”Response | undefined | Promise<Response | undefined>