Skip to main content

Function: devRegisterGroup()

devRegisterGroup(group): void

Defined in: packages/core/src/dev-hooks.ts:138

Register a declaration that owns members — a family, a crew.

The one hook whose subject is not a live node, and the reason the whole DeclaredGroup contract exists. Everything else here registers something a constructor just finished building, so it is registered because it exists. A family is registered because the developer declared it, before it has built anything at all — which is the only way a family across fifty tenants can appear in the panel before traffic happens to touch one.

Typed as object rather than DeclaredGroup so this stays a seam and not a second definition of the contract: declaredGroupOf in types.ts is the one validator, and it runs on the registry side where a malformed declaration can be dropped with a warning instead of throwing into the caller's constructor.

Parameters

group

object

Returns

void