( fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response> )
| 6 | const NativeRequest = globalThis.Request |
| 7 | |
| 8 | const makeFetch = ( |
| 9 | fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response> |
| 10 | ): typeof globalThis.fetch => Object.assign(fetch, { preconnect: () => {} }) |
| 11 | |
| 12 | // Model browsers that stringify stream bodies and never read the duplex option, |
| 13 | // then load a fresh module so support is detected against the stub. |
no test coverage detected