Type alias Transform<Chunk>

Transform<Chunk>: ((chunk?: Chunk) => AsyncGenerator<Chunk>)

Type Parameters

  • Chunk = Uint8Array

Type declaration

    • (chunk?: Chunk): AsyncGenerator<Chunk>
    • Composes multiple generator functions into a single generator function. Output type must be the same as input type.

      Parameters

      • Optional chunk: Chunk

      Returns AsyncGenerator<Chunk>

Generated using TypeDoc