Interface StreamOptions<T>

interface StreamOptions<T> {
    autoDestroy?: boolean;
    emitClose?: boolean;
    highWaterMark?: number;
    objectMode?: boolean;
    signal?: AbortSignal;
    construct?(this: T, callback: Object): void;
    destroy?(this: T, error: Error, callback: Object): void;
}

Type Parameters

Hierarchy (view full)

Properties

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

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

Methods

  • Parameters

    • this: T
    • callback: Object

    Returns void

  • Parameters

    • this: T
    • error: Error
    • callback: Object

    Returns void