Fix emotion
typings
#1983
Labels
area/website
Categorize issue or PR as website (@neo-one/website) related
good first issue
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
priority/important-longterm
Important over the long term, but may not be staffed.
Description
In my PR to upgrade TS to v3.8.1-rc here I had to add a whole lot of
any
types and other generic generic types (<{}, {}>
), mostly to thestyled()
method fromemotion
. This was due to some obscure and very difficult to fix types thatemotion
was/is looking for. At some point this needs to be fixed and the type-safety added back. It looks likeemotion
has already acknowledged the problem and merged a fix here. But it seems it won't be released untilemotion
v11. See here. It's hard to tell when this will be released. I tried using@emotion/styled
v11.0.0-next.11 without success. So perhaps the fix didn't make it into that specific version? Or perhaps there's a solution mentioned here? In any case, this should be fixed when possible. It should be easy to revert my temporary fix bygit revert
-ing this commit here.Steps to Reproduce
rush tsc
Expected behavior: No type errors
Actual behavior: Lots of type errors
Reproduces how often: 100%
Versions
On
master
without the type fix mentioned above.Additional Information
None.
The text was updated successfully, but these errors were encountered: