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
This compiles fine (as PropertiesHyphen from csstype allows it) but at runtime it breaks. Not that big of an issue but would be nice to somehow fix. Not sure how though. Perhaps the best way would be to make the style modifier work with other values not just string. Not sure why it was done so. Otherwise the types from csstype should somehow be augmented which probably won't be simple and will be brittle.
The text was updated successfully, but these errors were encountered:
The arguments you've given there are pretty compelling and I agree with them. But there are a few properties which are exceptional - scale for example - which don't require a unit. Perhaps only they could be made to work with other value types as well as strings. That would be best of both worlds - the types will be correct and the usability would be best for users - they could use numbers as well.
This compiles fine (as
PropertiesHyphen
fromcsstype
allows it) but at runtime it breaks. Not that big of an issue but would be nice to somehow fix. Not sure how though. Perhaps the best way would be to make thestyle
modifier work with other values not juststring
. Not sure why it was done so. Otherwise the types fromcsstype
should somehow be augmented which probably won't be simple and will be brittle.The text was updated successfully, but these errors were encountered: