Headstorm/foundry-ui

FoundryProvider | colors type doesn't allow for non-foundry color keys

Closed this issue · 0 comments

The current type is

declare type FoundryColorsType = Record<keyof typeof colorsEnum, string>;

but for instance if I pass a colors object into the FoundryContext which includes color "violet", it is accessible via the useTheme hook and works as expected - except the IDE is convinced that it cannot exist, because "violet" doesn't exist in FoundryColorsType. I think this may be a simple addition of Partial type wrapper.