(_fetch: Fetch)
| 17 | |
| 18 | let configured = false; |
| 19 | export function configureFetch(_fetch: Fetch) { |
| 20 | if (configured) { |
| 21 | throw new Error('Fetch has already been configured and cannot be re-configured.'); |
| 22 | } |
| 23 | fetch = _fetch; |
| 24 | configured = true; |
| 25 | } |
| 26 | |
| 27 | export class ResponseFailError extends Error { |
| 28 | response: Response; |
no outgoing calls
no test coverage detected