You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that CommonColors has changed from an exported Typescript interface to a non-exported type defined using Record<...> I can't figure out how to augment it with my own common colors and still make Typescript happy. Before merging #20079 (Display color preview in IntelliSense) this was straightforward with Typescript's declaration merging/module augmentation. Is this an oversight or should we not be "augmenting" theme.palette.common or am I not understanding how to make it work. Thanks in advance!!
The text was updated successfully, but these errors were encountered:
Now that CommonColors has changed from an exported Typescript
interface
to a non-exportedtype
defined usingRecord<...>
I can't figure out how to augment it with my own common colors and still make Typescript happy. Before merging #20079 (Display color preview in IntelliSense) this was straightforward with Typescript's declaration merging/module augmentation. Is this an oversight or should we not be "augmenting"theme.palette.common
or am I not understanding how to make it work. Thanks in advance!!The text was updated successfully, but these errors were encountered: