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

Hierarchy (view full)

Properties

autoDestroy?: boolean
emitClose?: boolean
encoding?: BufferEncoding
highWaterMark?: number
objectMode?: boolean
signal?: AbortSignal

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

Methods

  • Parameters

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

          • Optionalerror: null | Error

          Returns void

    Returns void

  • Parameters

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

          • Optionalerror: null | Error

          Returns void

    Returns void

  • Parameters

    Returns void