Skip to content

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)

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed