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

Usage in Deno

```typescript import { type WritableStreamDefaultController } from "node:node__stream--web.d.ts"; ```
This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.

Methods

error(e?: any): void
variable WritableStreamDefaultController
`WritableStreamDefaultController` class is a global reference for `import { WritableStreamDefaultController } from 'node:stream/web'`. https://nodejs.org/api/globals.html#class-writablestreamdefaultcontroller

Type

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