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
TInput
objectRequiredThe type of the input of the step.
TOutput
objectRequiredThe type of the output of the step.
Was this section helpful?