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

Usage in Deno

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

Type Parameters

R = any

Properties

readonly
desiredSize: number | null

Methods

close(): void
enqueue(chunk?: R): void
error(e?: any): void

Type Parameters

R = any
variable ReadableStreamDefaultController
`ReadableStreamDefaultController` class is a global reference for `import { ReadableStreamDefaultController } from 'node:stream/web'`. https://nodejs.org/api/globals.html#class-readablestreamdefaultcontroller

Type

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