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?
optionaldemoPace?:DemoPace
Defined in: src/engine/block/some-block.ts:42
description?
optionaldescription?: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?
optionalrequires?: readonlyMemKey<unknown>[]
Defined in: src/engine/block/some-block.ts:41
routes?
optionalroutes?:Readonly<Record<string,string|null>>
Defined in: src/engine/block/some-block.ts:40
Methods
instanceOptions()?
optionalinstanceOptions(page):Promise<readonlyWaygraphInstanceOption<unknown>[]>
Defined in: src/engine/block/some-block.ts:43
Parameters
page
Page
Returns
Promise<readonly WaygraphInstanceOption<unknown>[]>
modVerify()?
optionalmodVerify(nameOrIndex,newCheck):SomeBlock
Defined in: src/engine/block/some-block.ts:45
Parameters
nameOrIndex
string | number
newCheck
Trait | ((page, mem) => Promise<boolean | TraitResult>)
Function
(page, mem) => Promise<boolean | TraitResult>
Returns
SomeBlock
modVerifyAll()?
optionalmodVerifyAll(patches):SomeBlock
Defined in: src/engine/block/some-block.ts:46
Parameters
patches
Record<string, Trait["check"] | Trait>
Returns
SomeBlock
next()?
optionalnext(checkpoint):SomeBlock|null|undefined
Defined in: src/engine/block/some-block.ts:39
Parameters
checkpoint
Checkpoint<string>
Returns
SomeBlock | null | undefined
withVerify()?
optionalwithVerify(verify):SomeBlock
Defined in: src/engine/block/some-block.ts:44
Parameters
verify
Returns
SomeBlock