Import streams for node:stream/web

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
Ben Brandt
2025-08-27 11:51:15 -07:00
parent b38ee5bfdf
commit 16a352f98e

View File

@@ -1,6 +1,7 @@
// A pushable async iterable: allows you to push items and consume them with for-await. // A pushable async iterable: allows you to push items and consume them with for-await.
import { Readable, Writable } from "node:stream"; import { Readable, Writable } from "node:stream";
import { WritableStream, ReadableStream } from "node:stream/web";
// Useful for bridging push-based and async-iterator-based code. // Useful for bridging push-based and async-iterator-based code.
export class Pushable<T> implements AsyncIterable<T> { export class Pushable<T> implements AsyncIterable<T> {