(stream: Writable)
| 8 | const noop = () => {}; |
| 9 | |
| 10 | const written = (stream: Writable) => |
| 11 | new Promise((resolve, reject) => |
| 12 | stream.on('error', reject).on('finish', resolve), |
| 13 | ); |
| 14 | |
| 15 | class Sink extends Writable implements HeaderStream { |
| 16 | private readonly chunks: string[] = []; |