interface ReadableOptions {
    signal?: AbortSignal;
    emitClose?: boolean;
    highWaterMark?: number;
    objectMode?: boolean;
    construct?(this: Readable, callback: ((error?: Error) => void)): void;
    destroy?(this: Readable, error: Error, callback: ((error?: Error) => void)): void;
    autoDestroy?: boolean;
    encoding?: BufferEncoding;
    read?(this: Readable, size: number): 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
encoding?: BufferEncoding

Methods

  • Parameters

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

          • Optionalerror: Error

          Returns void

    Returns void

  • Parameters

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

          • Optionalerror: Error

          Returns void

    Returns void

  • Parameters

    Returns void