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

    Interface StreamEncoder<T>

    StreamEncoder supplies the representation media type and incrementally transforms typed items into byte chunks. It does not control REST or gRPC.

    interface StreamEncoder<T> {
        mediaType: string;
        encode(items: AsyncIterable<T>): AsyncIterable<Uint8Array<ArrayBufferLike>>;
    }

    Type Parameters

    • T
    Index

    Properties

    Methods

    Properties

    mediaType: string

    Methods

    • Parameters

      • items: AsyncIterable<T>

      Returns AsyncIterable<Uint8Array<ArrayBufferLike>>