League-of-Foundry-Developers / foundry-vtt-types

Unofficial type declarations for the Foundry Virtual Tabletop API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve types for index fields

JPMeehan opened this issue · comments

Some documents have properties that are automatically indexed, e.g. actor name and img. Furthermore, systems can use CONFIG to make more properties automatically indexed. These would be improvements to CompendiumCollection.IndexEntry

  • Core-provided properties in metadata.compendiumIndexFields should always be indexed
  • Provide an interface that aligns with CONFIG[documentType].compendiumIndexFields for expanding this.