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
@jzempel Thank you for bringing this to our attention. We were missing a TS test for this scenario.
Unfortunately, the library we use for generating types for TS is fairly limited and no longer maintained. We are rewriting 5.0 in TS natively, so this will be addressed then. Apologies for the limitation.
polished
version: 4.0.3JSS-in_CSS
library and version: styled-components 4.4.1Mixin/Helper/Shorthand Usage
Updated code based on v4 breaking changes.
What You Are Seeing
On
tsc
compile:What You Expected To See
No
tsc
errors withexponentialSymbols
import. I think the fix might be as simple as addingtypeof
to the function definitions in https://unpkg.com/browse/polished@4.0.3/lib/math/presets/exponentialSymbols.d.ts.Reproduction
Currently working around by inlining the
symbols
definition forsqrt
. See https://github.com/zendeskgarden/react-components/pull/920/files#diff-e8a3ada410dbb11bc3294a80df7fd05ac795d41d99ffdc21e4597c7787fa7991 for details.The text was updated successfully, but these errors were encountered: