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
Typescript is often used with react and provides strong type checks at compile-time.
At the moment there are no typings for css-modules-theme.
Perhaps someone with more TS experience could work on this as I'm not used to it yet.
edit
I've tried to write some typings for this, although as it seems this completely destroys type safety, since it's impossible to determine the type of the theme props as it depends on the themePrefix prop.
Typescript is often used with react and provides strong type checks at compile-time.
At the moment there are no typings for
css-modules-theme
.Perhaps someone with more TS experience could work on this as I'm not used to it yet.
edit
I've tried to write some typings for this, although as it seems this completely destroys type safety, since it's impossible to determine the type of the
theme
props as it depends on thethemePrefix
prop.At this time it is impossible to augment string literal types in TS (microsoft/TypeScript#12754).
The text was updated successfully, but these errors were encountered: