attachSyncRegistryStorage
attachSyncRegistryStorage<
TRegistry>(registry,storage):TRegistry
Defined in: packages/contracts/src/registry.ts:1398
Stamp the registry’s storage declaration (ADR-0049 decision 1, ADR-0047) onto the registry value as a
non-enumerable symbol — the storage twin of attachSyncRegistrySchema. Carries the data-contract
storage through defineSyncRegistry so client code reads it back via getSyncRegistryStorage.
A null/undefined declaration attaches nothing (the bare-registry-map overload), leaving the reader to
resolve the ADR-0047 defaults at the mint seam.
Type Parameters
Section titled “Type Parameters”TRegistry
Section titled “TRegistry”TRegistry extends SyncTableRegistry
Parameters
Section titled “Parameters”registry
Section titled “registry”TRegistry
storage
Section titled “storage”SyncStorageDeclaration | undefined
Returns
Section titled “Returns”TRegistry