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

Type Parameters

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
construct?: ((this: T, callback: ((error?: null | Error) => void)) => void)
destroy?: ((this: T, error: null | Error, callback: ((error?: null | Error) => void)) => void)
autoDestroy?: boolean
encoding?: BufferEncoding
read?: ((this: T, size: number) => void)