• Type Parameters

    • S

    • A extends unknown[]

    • T

    • TReturn

    • TNext

    • U

    • UReturn

    • UNext

    Parameters

    • to: ((g, s, ...args) => AsyncGenerator<U, UReturn, UNext>)
        • (g, s, ...args): AsyncGenerator<U, UReturn, UNext>
        • Parameters

          • g: AsyncGenerator<T, TReturn, TNext>
          • s: S
          • Rest ...args: A

          Returns AsyncGenerator<U, UReturn, UNext>

    • generator: AsyncGenerator<T, TReturn, TNext>
    • startSetup: (() => Promise<S>)
        • (): Promise<S>
        • Returns Promise<S>

    • Rest ...args: A

    Returns Promise<{
        output: AsyncGenerator<U, UReturn, UNext>;
        setup: Awaited<S>;
    }>

Generated using TypeDoc