Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WritableStreamDefaultWriter

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.

interface WritableStreamDefaultWriter <W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
var WritableStreamDefaultWriter: {
new <W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
}
;

§Type Parameters

§
W = any
[src]

§Properties

§
readonly closed: Promise<undefined>
[src]
§
readonly desiredSize: number | null
[src]
§
readonly ready: Promise<undefined>
[src]

§Methods

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