workflow.readstep.md
February 21, 2024 ยท View on GitHub
Home > @datashaper/workflow > readStep
readStep() function
Factory function to create new verb configs with as many reasonable defaults as possible.
Signature:
export declare function readStep<T extends object | unknown = any>({ verb, args, id, input }: StepInput<T>, previous?: Step | undefined): Step<T>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| { verb, args, id, input } | StepInput<T> | |
| previous | Step | undefined | (Optional) |
Returns:
Step<T>