Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.WritableStreamDefaultWriter

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.WritableStreamDefaultWriter
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { WritableStreamDefaultWriter } = dom;

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<void>
readonly
desiredSize: number | null
readonly
ready: Promise<void>

Methods

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