-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Typings not compatible with TS 3.8 #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
"Short term" workaround: you should be able to turn Not that this isn't something that shouldn't be fixed, but the TS team is actually encouraging the use of this flag as it avoids users getting stuck on errors that they really can't solve: although the flag defaults to |
I've been working on this all morning. Apparently I'm using a few techniques that TypeScript will happily to compile, but the compiled declaration files fail type checking, even using the same TS version and config that compiled the code originally. I didn't know this was even possible...it shouldn't be. Anyway I pinpointed the issue and was able to refactor away the offending code. Now that I know this is possible I'll be on the lookout for it. I'll be sure to run test builds of a sample project before publishing new versions. Upgrade to zod@1.10.2 to solve this. @jandolezal71 please try this and let me know if you're still having issues. Future people: if you encounter an issue similar, follow @Retsam's advice for an immediate fix but open a separate issue to let me know about the problem. |
@vriad Everything works with |
Great to hear! 👍 |
Hi Are we the only one having these errors?
|
When using zod, typescript check will throw an error:
3.8.3
1.10.1
The text was updated successfully, but these errors were encountered: