I have created such a dictionary:
const iconTypesDictionary: { [key: string]: IconPrefix } = {
solid: 'fas',
regular: 'far',
light: 'fal',
}
And I would like to use the keys of this dictionary as possible values for the property. So to replace the repeated keys in this case:
export interface IconProps {
type?: 'solid' | 'regular' | 'light';
}
Is there a solution for this?