Genotype API Documentation - v0.1.0
    Preparing search index...

    Function pipe

    • Transform stream through a processing function

      Provides a streaming transform pattern that maintains backpressure and handles errors gracefully.

      Type Parameters

      • T
      • U

      Parameters

      • input: AsyncIterable<T>

        Input async iterable

      • transform: (item: T, index: number) => U | Promise<U>

        Transform function to apply to each item

      Returns AsyncIterable<U>

      Transformed items

      If transformation fails