Represents a writable stream.

interface IWritableStream {
    close(): Promise<void>;
    write(chunk: ArrayBuffer): Promise<void>;
}

Methods

Methods

  • Writes data to the stream.

    Parameters

    • chunk: ArrayBuffer

      The data to write as an ArrayBuffer.

    Returns Promise<void>