Skip to content

attachSyncRegistryStreams

attachSyncRegistryStreams<TRegistry>(registry, streams): TRegistry

Defined in: packages/contracts/src/registry.ts:1498

Stamp the registry’s registered Event streams (ADR-0053 decision 1) onto the registry value as a non-enumerable symbol — the Event-lane twin of attachSyncRegistryRowClasses. An absent declaration attaches nothing (the bare-registry-map overload, and any definition that registers no Event stream), so getSyncRegistryStreams reads back undefined and the registry simply has no Event lane.

Non-enumerable is load-bearing beyond tidiness: canonicalizeRegistry walks the registry’s own enumerable keys, so riding a symbol is what keeps Event streams OUT of the persisted fingerprint.

TRegistry extends SyncTableRegistry

TRegistry

EventStreamRegistry | undefined

TRegistry