Skip to content

resolveStorageDeclaration

resolveStorageDeclaration(staticDeclaration, wireDeclaration): ResolvedStorageDeclaration

Defined in: packages/contracts/src/config.ts:204

Resolve a store’s storage declaration from its two sources (ADR-0050): the registry-attached STATIC declaration (authoritative) and the tab’s WIRE declaration (honoured only where the registry is silent). Per field: an unset field is “no opinion” and can never conflict; both explicit and disagreeing is a StorageDeclarationRefusedError; unresolved fields take the capability defaults (backend: "opfs", durability: "relaxed").

SyncStorageDeclaration | undefined

SyncStorageDeclaration | undefined

ResolvedStorageDeclaration