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> {
    closed: Promise<undefined>;
    desiredSize: null | number;
    ready: Promise<undefined>;
    abort(reason?): Promise<void>;
    close(): Promise<void>;
    releaseLock(): void;
    write(chunk?): Promise<void>;

Type Parameters

  • W = any


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


  • Parameters

    • Optional reason: any

    Returns Promise<void>

  • Returns Promise<void>

  • Returns void

  • Parameters

    • Optional chunk: W

    Returns Promise<void>

Generated using TypeDoc