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
With the deprecation of getValueAndUnit I was looking at replacing it with stripUnit, however the return type of stripUnit is not as helpful as getValueAndUnit, as stripUnit always returns any.
stripUnit(value: (string | number), unitReturn: boolean): any
With the deprecation of
getValueAndUnit
I was looking at replacing it withstripUnit
, however the return type ofstripUnit
is not as helpful asgetValueAndUnit
, asstripUnit
always returnsany
.polished
version: 3.4.1JSS-in_CSS
library and version: N/AMixin/Helper/Shorthand you were using and how you were using it:
What you are seeing:
What you expected to see:
More well-defined return types, such as those previously returned by
getValueAndUnit
.Reproduction:
https://codesandbox.io/s/pensive-thunder-z5ijj
The text was updated successfully, but these errors were encountered: