Skip to content

dedupeAssets

dedupeAssets<T>(assets): T[]

Defined in: packages/core/src/emitter/assets.ts:314

Collapse duplicate names: identical content is the common legitimate case (two constructs sharing a preset) and keeps one copy; same name with DIFFERENT content is a collision that would silently render one authored pattern as another — thrown, never shipped.

Type Parameter
T extends SpriteLayoutItem
ParameterType
assetsreadonly T[]

T[]