(body: Response['body'])
| 103 | } |
| 104 | |
| 105 | export function toNodeReadable(body: Response['body']): Readable { |
| 106 | if (!body) { |
| 107 | throw new TypeError('Expected response body'); |
| 108 | } |
| 109 | |
| 110 | return Readable.fromWeb(body as unknown as ReadableStream<Uint8Array>); |
| 111 | } |
no outgoing calls
no test coverage detected