Skip to content

combineSources

combineSources(sources): AssetSource | undefined

Defined in: packages/declarative-hex-worlds/src/asset-source/source.ts:167

Compose sources into one first-match AssetSource: the first source to resolve a placement (or edge) wins. Returns the single source directly, or undefined for an empty list. Renderer-neutral, so it lives in the core alongside the AssetSource contract (a binding then registers the composite). Re-exported from declarative-hex-worlds/react-elements for back-compat.

readonly AssetSource[]

AssetSource | undefined