Function: step()
step<
C,M>(machine,input,options):WorkflowStep<C,M>
Helper function for defining a step in a workflow, enforcing types properly.
Type Parameters
| Type Parameter |
|---|
C |
M extends AnyStateMachine |
Parameters
| Parameter | Type |
|---|---|
machine | M |
input | (arg) => InputFrom<M> |
options | { skipIf?: (arg) => boolean; validate?: (arg) => Promise<undefined | string>; } |
options.skipIf? | (arg) => boolean |
options.validate? | (arg) => Promise<undefined | string> |
Returns
WorkflowStep<C, M>