Skip to content

Ability to extend Theme TS type. #1835

@Trancever

Description

@Trancever

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?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions