transferum
    Preparing search index...

    Interface AsyncOperatorPipelineBuilderInterface<TFlow>

    Async operator pipeline builder interface — like OperatorPipelineBuilderInterface, but accepts both sync and async operators. Async overloads are listed first to avoid TOutput being inferred as Promise.

    interface AsyncOperatorPipelineBuilderInterface<
        TFlow extends readonly unknown[],
    > {
        add<TInput, TOutput>(
            this: AsyncOperatorPipelineBuilderInterface<[]>,
            operator: AsyncOperatorInterface<TInput, TOutput>,
        ): AsyncOperatorPipelineBuilderInterface<[TInput, TOutput]>;
        add<TInput, TOutput>(
            this: AsyncOperatorPipelineBuilderInterface<[]>,
            operator: OperatorInterface<TInput, TOutput>,
        ): AsyncOperatorPipelineBuilderInterface<[TInput, TOutput]>;
        add<TNext>(
            this: AsyncOperatorPipelineBuilderInterface<TFlow>,
            operator: AsyncOperatorInterface<Last<TFlow>, TNext>,
        ): AsyncOperatorPipelineBuilderInterface<[...TFlow[], TNext]>;
        add<TNext>(
            this: AsyncOperatorPipelineBuilderInterface<TFlow>,
            operator: OperatorInterface<Last<TFlow>, TNext>,
        ): AsyncOperatorPipelineBuilderInterface<[...TFlow[], TNext]>;
        build(
            this: AsyncOperatorPipelineBuilderInterface<
                readonly [unknown, unknown],
            >,
        ): AsyncOperatorInterface<First<TFlow>, Last<TFlow>>;
    }

    Type Parameters

    • TFlow extends readonly unknown[]

    Implemented by

    Index