Interface ReadableOptions

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

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void