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

Usage in Deno

```typescript import { type WritableStream } from "node:node__stream--web.d.ts"; ```
This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in back pressure and queuing.

Type Parameters

W = any

Properties

readonly
locked: boolean

Methods

abort(reason?: any): Promise<void>
close(): Promise<void>

Type Parameters

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

Type

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