Skip to main content

Type Alias: InferStepOutput<T, TInput>

InferStepOutput<T, TInput> = T extends ConditionalStep<TInput, infer Out> ? Out : T extends LoopStep<infer In> ? In : T extends RecursiveLoopStep<TInput, infer Out> ? Out : T extends ParallelStep<TInput, infer Out> ? Out : T extends RouteStep<TInput, infer Out> ? Out : T extends Processable<any, infer Out> ? Out : never

Defined in: packages/core/src/pipeline/types.ts:345

Infer output type from a pipeline step using distributive conditional types. Handles all step variants and extracts their output type.

Type Parameters

T

T extends PipelineStep

TInput

TInput = any