Skip to content

waygraph / SomeBlock

Interface: SomeBlock ​

Defined in: src/engine/block/some-block.ts:35

Any Block, whatever its route: what the runner, the graph and the tools hold. Every Block<In, Out> is one; the route each Block checks at compile time is checked again at run time (each step's from / to).

Extended by ​

Properties ​

demoPace? ​

optional demoPace?: DemoPace

Defined in: src/engine/block/some-block.ts:42


description? ​

optional description?: string

Defined in: src/engine/block/some-block.ts:37


instruction ​

instruction: SomeInstruction

Defined in: src/engine/block/some-block.ts:38


name ​

name: string

Defined in: src/engine/block/some-block.ts:36


requires? ​

optional requires?: readonly MemKey<unknown>[]

Defined in: src/engine/block/some-block.ts:41


routes? ​

optional routes?: Readonly<Record<string, string | null>>

Defined in: src/engine/block/some-block.ts:40

Methods ​

instanceOptions()? ​

optional instanceOptions(page): Promise<readonly WaygraphInstanceOption<unknown>[]>

Defined in: src/engine/block/some-block.ts:43

Parameters ​

page ​

Page

Returns ​

Promise<readonly WaygraphInstanceOption<unknown>[]>


modVerify()? ​

optional modVerify(nameOrIndex, newCheck): SomeBlock

Defined in: src/engine/block/some-block.ts:45

Parameters ​

nameOrIndex ​

string | number

newCheck ​

Trait | ((page, mem) => Promise<boolean | TraitResult>)

Trait


Function ​

(page, mem) => Promise<boolean | TraitResult>

Returns ​

SomeBlock


modVerifyAll()? ​

optional modVerifyAll(patches): SomeBlock

Defined in: src/engine/block/some-block.ts:46

Parameters ​

patches ​

Record<string, Trait["check"] | Trait>

Returns ​

SomeBlock


next()? ​

optional next(checkpoint): SomeBlock | null | undefined

Defined in: src/engine/block/some-block.ts:39

Parameters ​

checkpoint ​

Checkpoint<string>

Returns ​

SomeBlock | null | undefined


withVerify()? ​

optional withVerify(verify): SomeBlock

Defined in: src/engine/block/some-block.ts:44

Parameters ​

verify ​

Trait[] | ((out) => Trait[])

Returns ​

SomeBlock

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