Skip to content

waygraph / RoutedBlockBase

Type Alias: RoutedBlockBase<In, Out> ​

RoutedBlockBase<In, Out> = Omit<BlockBase<In, Out>, "instruction"> & object

Defined in: src/engine/checkpoint/route.ts:29

Type Parameters ​

In ​

In extends Checkpoint<string>

Out ​

Out extends Checkpoint<string>

Type Declaration ​

expect? ​

optional expect?: ExpectList<Out>

What this Block promises wherever it's used, checked after its verify: Expect Blocks, Traits, Key.is(...). A Block that can land in several places lists them per outcome. Read-only and run together; a step can drop them ({ expect: false }) or add its own.

Example ​

ts
expect: [ExpectArchivedToastBlock] · expect: { EquipmentDetail: [ExpectSavedBlock], EquipmentAdd: [ExpectNameRequiredBlock] }

from? ​

optional from?: In | readonly In[]

instruction ​

instruction: Omit<BlockBase<In, Out>["instruction"], "resolve" | "stubBefore" | "stubAfter" | "stubOnError"> & object

Type Declaration ​

resolve? ​

optional resolve?: BlockBase<In, Out>["instruction"]["resolve"]

to ​

to: Out | readonly Out[]

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