Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
interface WritableStreamDefaultWriter
import { type WritableStreamDefaultWriter } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";

This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.

Type Parameters

optional
W = any

Properties

readonly
closed: Promise<undefined>
readonly
desiredSize: number | null
readonly
ready: Promise<undefined>

Methods

abort(reason?: any): Promise<void>
close(): Promise<void>
releaseLock(): void
write(chunk?: W): Promise<void>