Is your feature request related to a problem?withStyles gives a type error when taking a string as object value despite jss-plugin-template being a default plugin:
withStyles({
root: `font-size: 1em;`
});
Describe the solution you'd likewithStyles should not error out when taking strings as object values. This should also be taken into account for the new hooks api.
Are you willing to implement it?
Yes
Edit: It looks like the culprit is jss exported Style: export type Style = { [key: string]: Style | any }.
Is your feature request related to a problem?
withStyles
gives a type error when taking a string as object value despitejss-plugin-template
being a default plugin:Describe the solution you'd like
withStyles
should not error out when taking strings as object values. This should also be taken into account for the new hooks api.Are you willing to implement it? Yes
Edit: It looks like the culprit is
jss
exportedStyle
:export type Style = { [key: string]: Style | any }
.