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

Hierarchy (view full)

Properties

signal?: AbortSignal

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

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

Methods

  • Parameters

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

          • Optionalerror: Error

          Returns void

    Returns void

  • Parameters

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

          • Optionalerror: Error

          Returns void

    Returns void

  • Parameters

    • this: Writable
    • chunk: any
    • encoding: BufferEncoding
    • callback: ((error?: Error) => void)
        • (error?): void
        • Parameters

          • Optionalerror: Error

          Returns void

    Returns void

  • Parameters

    • this: Writable
    • chunks: {
          chunk: any;
          encoding: BufferEncoding;
      }[]
    • callback: ((error?: Error) => void)
        • (error?): void
        • Parameters

          • Optionalerror: Error

          Returns void

    Returns void

  • Parameters

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

          • Optionalerror: Error

          Returns void

    Returns void