Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / defineBlock

Function: defineBlock()

ts
function defineBlock(spec): BlockDefinition;

Defined in: packages/memory/src/tiers/working-memory.ts:60

Build a frozen BlockDefinition. Surfaced as blocks.define(...) for ergonomic call-sites; the underlying object is the same shape the WorkingMemory.define method accepts.

Parameters

ParameterType
specBlockSpec

Returns

BlockDefinition

Stable