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?
optionalexpect?: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?
optionalfrom?:In| readonlyIn[]
instruction
instruction:
Omit<BlockBase<In,Out>["instruction"],"resolve"|"stubBefore"|"stubAfter"|"stubOnError"> &object
Type Declaration
resolve?
optionalresolve?:BlockBase<In,Out>["instruction"]["resolve"]
to
to:
Out| readonlyOut[]