Skip to content

resolve

resolve<T>(local, fromConfig, fallback): T

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/config/resolve.d.ts:17

The single precedence rule shared by every surface:

tag attribute > centralized config > built-in default

local is the per-instance signal (a tag attribute / Lit property); pass undefined when the tag does not set it. fromConfig is the site-global value off StoresynkConfig. fallback is the built-in default.

NOTE on boolean presence attributes: an HTML presence attribute can say “true” (present) but not “false” (absent is indistinguishable from unset), so pass this.hasAttribute('x') ? true : undefined. This means the config can turn a behavior ON as the site default and a tag can only add to it - a bare tag cannot force a config-true back off. Support a valued x="false" attribute only if a real per-instance opt-out case appears.

T

T | undefined

T | undefined

T

T