Closed faergeek closed 1 year ago
Hiya :wave:
Seems like I missed a declare
keyword on the internal enums. Rest assured that this shouldn’t cause the library’s types to fail and if you enable skipLibCheck
this will continue working as usual. However, I'll of course get a patch released ✌️
Wow, that was quick, thanks a lot! 👍
Describe the bug
Hello! First of all, thanks for the great library 👍 It's very cool!
But now I'm trying to update wonka from 6.2.5 to 6.2.6 or 6.3.0 on one of my projects and typescript gives me the following error:
I tried to build it locally, but I installed deps using yarn instead of pnpm, so effectively all the latest, and it outputs
declare
for enums correctly. But on published version on npm there's nodeclare
keywords before enums. So I assume it may be a problem with some of the dependencies.I created a repo with simple reproduction, just in case. It has wonka@6.3.0 and gives an error. But if you change it to wonka@6.2.5, there will be no errors.
Reproduction
https://github.com/faergeek/wonka-tsc-issue-reproduction
Package version
wonka@6.2.6
Validations