waygraph / steps
Function: steps()
steps<
In,Out>(_from,build):Steps<In,Out>
Defined in: src/engine/flow/map-part.ts:28
A part of a flow, written once and played by several (.steps(part)): the steps after from, as a flow writes them. from is the Checkpoint the part starts on; the part is checked step by step, as a flow is.
Type Parameters
In
In extends Checkpoint<string>
Out
Out extends Checkpoint<string>
Parameters
_from
In
build
(m) => MapBuilder<Out>
Returns
Steps<In, Out>
Example
ts
export const logDisruption = steps(DisruptionLog, (m) => m.method(SelectMachineBlock).method(FillShiftStartBlock).method(SubmitDisruptionBlock));
map({ as: Planner }).gotoPage(NavDisruptionLogBlock).steps(logDisruption).gotoPage(NavDisruptionLogBlock).steps(logDisruption)