Skip to content

waygraph / preflight

Function: preflight() ​

preflight(mem, block): void

Defined in: src/engine/run/run.ts:31

Checks block.requires against mem and throws, naming every missing key at once, if any are unset. connect() unions each Block's requires into the composed Block, so calling this on a map()-built Flow's entry - which runGraph does automatically, before opening a tab - covers every Block in that flow. It does not see Blocks only reachable through branch() routing, since those depend on a runtime decision that hasn't happened yet.

Parameters ​

mem ​

MemPage

block ​

SomeBlock

Returns ​

void

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