Skip to content

waygraph / ReadBlockOptions

Interface: ReadBlockOptions ​

Defined in: src/engine/read/read-block.ts:13

Options for defineReadBlock: shaped like a Method's, with one instruction phase.

Properties ​

description? ​

optional description?: string

Defined in: src/engine/read/read-block.ts:15


from? ​

optional from?: Checkpoint<string> | readonly Checkpoint<string>[]

Defined in: src/engine/read/read-block.ts:17

The Checkpoint(s) whose page this reads. Leave it out to read on every page (a header, the signed-in user).


instruction ​

instruction: object

Defined in: src/engine/read/read-block.ts:20

read() ​

read(ctx): ReadSpec | readonly ReadSpec[]

Returns one namespace's spec (Post({ ... })) or several. Runs on every read, so it can use ctx.mem.

Parameters ​
ctx ​

ReadCtx

Returns ​

ReadSpec | readonly ReadSpec[]


name ​

name: string

Defined in: src/engine/read/read-block.ts:14


requires? ​

optional requires?: readonly MemKey<unknown>[]

Defined in: src/engine/read/read-block.ts:19

Mem keys read uses through ctx.mem; without them set, this Read Block is skipped (and said so).

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