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

Usage in Deno

```typescript import { type ReadableStreamBYOBReader } from "node:node__stream--web.d.ts"; ```
[MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)

Methods

read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>
[MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
releaseLock(): void
[MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
variable ReadableStreamBYOBReader
`ReadableStreamBYOBReader` class is a global reference for `import { ReadableStreamBYOBReader } from 'node:stream/web'`. https://nodejs.org/api/globals.html#class-readablestreambyobreader

Type

globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T; } ? T : stream/web