ts-lambda-api - v2.5.2
    Preparing search index...

    Interface StreamOptions<T>

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

    Type Parameters

    Hierarchy (View Summary)

    Index

    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: (error?: Error) => void

      Returns void

    • Parameters

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

      Returns void