Skip to content

resolveStorageDeclaration

resolveStorageDeclaration(staticDeclaration, wireDeclaration): ResolvedStorageDeclaration

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

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", build: "c", and NO engine module — the toolkit’s own store).

The engine field resolves on its module URL, which is the identity that matters: two declarations naming the same module are the same engine, and a disagreement refuses exactly as the other fields do.

SyncStorageDeclaration | undefined

SyncStorageDeclaration | undefined

ResolvedStorageDeclaration