type Color = 'light-grey'; type SelectionListModifierConfig = { 'c-selection-list': [Color]; }; export type SelectionListModifier = { [P in keyof SelectionListModifierConfig]: { prefix: P; modifiers: SelectionListModifierConfig[P]; }; }[keyof SelectionListModifierConfig]; /** * Represents the possible types for modifier items in an SelectionList configuration. * It can either be an array of `SelectionListModifier` or a single `ModifierCombination` for shorthand usage. */ export type ModifierItems = SelectionListModifier[] | [Color]; export {};