Skip to main content
ReadableWritablePair - node__stream--web.d.ts - Node documentation
interface ReadableWritablePair

Usage in Deno

```typescript import { type ReadableWritablePair } from "node:node__stream--web.d.ts"; ```

Type Parameters

R = any
W = any

Properties

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.