Sanity Library Reference Docs
    Preparing search index...
    interface StreamOptions<T extends Stream> {
        signal?: AbortSignal;
        emitClose?: boolean;
        highWaterMark?: number;
        objectMode?: boolean;
        construct(this: T, callback: (error?: Error | null) => void): void;
        destroy(
            this: T,
            error: Error | null,
            callback: (error?: Error | null) => void,
        ): void;
        autoDestroy?: boolean;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    signal?: AbortSignal

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

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

    Methods

    • Parameters

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

      Returns void

    • Parameters

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

      Returns void