(handler: (next: FetchLike, input: string | URL, init?: RequestInit) => Promise<Response>)
| 316 | * @returns A fetch middleware function |
| 317 | */ |
| 318 | export const createMiddleware = (handler: (next: FetchLike, input: string | URL, init?: RequestInit) => Promise<Response>): Middleware => { |
| 319 | return next => (input, init) => handler(next, input as string | URL, init); |
| 320 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…