ReadableWritablePair
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:41
Type Parameters
Section titled “Type Parameters”Type Parameter | Default type |
---|---|
R | any |
W | any |
Properties
Section titled “Properties”readable
Section titled “readable”readable: ReadableStream<R>;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:42
writable
Section titled “writable”writable: WritableStream<W>;
Defined in: node_modules/.pnpm/@types+node@24.6.2/node_modules/@types/node/stream/web.d.ts:52
Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.