Interface WritableOptions

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

Hierarchy (view full)

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

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void