waygraph / SomeComposedBlock
Interface: SomeComposedBlock
Defined in: src/engine/block/compose.ts:52
Any ComposedBlock, whatever its route (see SomeBlock).
Extends
Extended by
Properties
demoPace?
optionaldemoPace?:DemoPace
Defined in: src/engine/block/some-block.ts:42
Inherited from
description?
optionaldescription?:string
Defined in: src/engine/block/some-block.ts:37
Inherited from
instruction
instruction:
SomeInstruction
Defined in: src/engine/block/some-block.ts:38
Inherited from
name
name:
string
Defined in: src/engine/block/some-block.ts:36
Inherited from
requires?
optionalrequires?: readonlyMemKey<unknown>[]
Defined in: src/engine/block/some-block.ts:41
Inherited from
routes?
optionalroutes?:Readonly<Record<string,string|null>>
Defined in: src/engine/block/some-block.ts:40
Inherited from
Methods
instanceOptions()?
optionalinstanceOptions(page):Promise<readonlyWaygraphInstanceOption<unknown>[]>
Defined in: src/engine/block/some-block.ts:43
Parameters
page
Page
Returns
Promise<readonly WaygraphInstanceOption<unknown>[]>
Inherited from
modStepVerify()
modStepVerify(
step,nameOrIndex,newCheck):SomeComposedBlock
Defined in: src/engine/block/compose.ts:55
Parameters
step
string | number | SomeBlock
nameOrIndex
string | number
newCheck
Trait | ((page, mem) => Promise<boolean | TraitResult>)
Function
(page, mem) => Promise<boolean | TraitResult>
Returns
SomeComposedBlock
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
Inherited from
modVerifyAll()?
optionalmodVerifyAll(patches):SomeBlock
Defined in: src/engine/block/some-block.ts:46
Parameters
patches
Record<string, Trait["check"] | Trait>
Returns
Inherited from
next()?
optionalnext(checkpoint):SomeBlock|null|undefined
Defined in: src/engine/block/some-block.ts:39
Parameters
checkpoint
Checkpoint<string>
Returns
SomeBlock | null | undefined
Inherited from
steps()
steps(): readonly
BlockInfo[]
Defined in: src/engine/block/compose.ts:53
Returns
readonly BlockInfo[]
withStepVerify()
withStepVerify(
step,verify):SomeComposedBlock
Defined in: src/engine/block/compose.ts:54
Parameters
step
string | number | SomeBlock
verify
Returns
SomeComposedBlock
withVerify()?
optionalwithVerify(verify):SomeBlock
Defined in: src/engine/block/some-block.ts:44