( fetch: Fetch, ...middlewares: Middleware[] )
| 80 | * @returns A new fetch function with all middlewares applied |
| 81 | */ |
| 82 | export function withMiddleware( |
| 83 | fetch: Fetch, |
| 84 | ...middlewares: Middleware[] |
| 85 | ): Fetch { |
| 86 | return composeMiddleware(...middlewares)(fetch); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Creates a new Headers object and copies headers from fetch arguments |
no test coverage detected