Skip to main content

Type Alias: InferStepOutput<T, _TInput>

InferStepOutput<T, _TInput> = T extends Processable<any, infer Out> ? Out : T extends (...args) => infer R ? Awaited<R> : never

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

Infer output type from a pipeline step. Processable is tested before the function arm because makeCallable returns both.

Type Parameters

T

T extends PipelineStep

_TInput

_TInput = any