Describe the feature
useTheme hook should return the correct type that contains user-defined properties.
Motivation
The type returned by useTheme hook is not customizable in any way right now. It always returns a type containing only properties defined by the library. It would be handy if user-defined properties are also properly typed.
@satya164 Would you like to explain how this could be implemented? Or at least post some link where we could see how it is done in other libs?
Describe the feature
useThemehook should return the correct type that contains user-defined properties.Motivation
The type returned by
useThemehook is not customizable in any way right now. It always returns a type containing only properties defined by the library. It would be handy if user-defined properties are also properly typed.@satya164 Would you like to explain how this could be implemented? Or at least post some link where we could see how it is done in other libs?