Skip to main content

Type Alias: PipelineStep<TInput, TOutput>

PipelineStep<TInput, TOutput> = Processable<TInput, TOutput> | ((input, options?) => TOutput | Promise<TOutput>)

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

A pipeline step is a Processable or a bare function.

There used to be five more — ConditionalStep, LoopStep, RecursiveLoopStep, ParallelStep, RouteStep — inert { type, config } descriptors that only a pipeline knew how to read. when(), loop(), recursiveLoop(), parallel() and route() all return Processables now, so those shapes have nothing left to describe and are gone rather than left exported: a type compileStep throws on is a landmine whether or not it is in the union.

Type Parameters

TInput

TInput = any

TOutput

TOutput = any