Skip to main content
Skip to main content

StepFunction

StepFunction: keyof TInput extends [] ? () => WorkflowData<{ [K in string | number | symbol]: TOutput[K] }> : (input: TInput extends object ? { [K in string | number | symbol]: TInput[K] | WorkflowData<TInput[K]> } : TInput | WorkflowData<TInput>) => WorkflowData<{ [K in string | number | symbol]: TOutput[K] }> & WorkflowDataProperties<{ [K in keyof TOutput]: TOutput[K] }> & WorkflowDataProperties<{ [K in keyof TOutput]: TOutput[K] }>

A step function to be used in a workflow.

Type Parameters

TInputobjectRequired
The type of the input of the step.
TOutputobjectRequired
The type of the output of the step.
Was this section helpful?