@valon-technologies/gestalt
    Preparing search index...

    Function stream

    • Declares a typed item stream. The catalog records the encoder's media type and the item schema; the SDK validates yielded items, passes them through the encoder, and exposes the resulting byte stream to the transport.

      Type Parameters

      • T

      Parameters

      Returns StreamOutput<T>

    • Declares a raw byte stream whose format the application owns. Defaults to application/octet-stream when no media type is supplied; a more precise media type should be used when known.

      Parameters

      • Optionaloptions: { mediaType?: string }

      Returns StreamOutput<Uint8Array<ArrayBufferLike>>