Ability to override/merge custom interface with Theme declaration #20513
Labels
Component: Theme
Needs: Backlog review
Resolution: Soft Close
Soft closing inactive issues over a certain period
Type: Feature
The
styled-components
library has a nice feature for TypeScript users: declaration merging can be used to change the DefaultTheme type as described here: https://styled-components.com/docs/api#create-a-declarations-fileIt would be nice if Fluent also had this feature, so any calls to
useTheme()
or calls tomakeStyles((theme) => ...)
would reference the custom Theme type.This would allow the user to do something like:
The text was updated successfully, but these errors were encountered: