function

NewBlockRegistry

NewBlockRegistry snapshots and resolves a finite registry. Forward references are supported; cycles and duplicate declarations are configuration errors.

Arguments

ArgumentTypeDescription
blocks[]BlockThe blocks value.

Returns

The declared result.

(BlockRegistry, error)

Full signature

Related types

  • Block

    Block is one discriminated layout allowed by a blocks field.

  • BlockRegistry

    BlockRegistry owns immutable, centrally declared block definitions. Bind makes references traversable without granting a referencing resource mutation rights.