interface WritableOptions {
    autoDestroy?: boolean;
    decodeStrings?: boolean;
    defaultEncoding?: BufferEncoding;
    emitClose?: boolean;
    highWaterMark?: number;
    objectMode?: boolean;
    signal?: AbortSignal;
    construct(this: Writable, callback: (error?: null | Error) => void): void;
    destroy(
        this: Writable,
        error: null | Error,
        callback: (error?: null | Error) => void,
    ): void;
    final(this: Writable, callback: (error?: null | Error) => void): void;
    write(
        this: Writable,
        chunk: any,
        encoding: BufferEncoding,
        callback: (error?: null | Error) => void,
    ): void;
    writev(
        this: Writable,
        chunks: { chunk: any; encoding: BufferEncoding }[],
        callback: (error?: null | Error) => void,
    ): void;
}

Hierarchy (View Summary)

Properties

autoDestroy?: boolean
decodeStrings?: boolean
defaultEncoding?: BufferEncoding
emitClose?: boolean
highWaterMark?: number
objectMode?: boolean
signal?: AbortSignal

When provided the corresponding AbortController can be used to cancel an asynchronous action.

Methods

  • Parameters

    • this: Writable
    • callback: (error?: null | Error) => void

    Returns void

  • Parameters

    • this: Writable
    • error: null | Error
    • callback: (error?: null | Error) => void

    Returns void

  • Parameters

    • this: Writable
    • callback: (error?: null | Error) => void

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void