-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
TypeScript errors TS4023, TS4094 #1182
Comments
No, I can fix it by exposing the types needed for you to keep the declarations, but I need to know which ones are missing. |
Here are the errors I'm getting: Errors
Isn't it easier to simply export all types used in the library so there's no need to worry about those errors? |
Thank you for elaborating, @bobgubko .
I'm trying to be careful with what I export, because making backwards incompatible changes to the exposed entities is a breaking change requiring next major version according to SemVer.
Ok. This is clear how to fix, exactly by exposing those types.
This is weird. Need to do a research. |
Question withdrawn. |
Dear @bobgubko , could you please try version |
It did fix the issue! 0 errors during build. |
Awesome, thank you for letting me know. |
I am getting the same error for a different type (
|
You should have created an issue for that, @alindsay55661 . |
Fixed in version 14.0.3, @alindsay55661 |
I recently upgraded to the latest epxress-zod-api version from 9.*, adjusted the codebase and at the end got a bunch of TS4023, TS4094 errors. I know I'm not the first one to open this issue and I know that you recommend to disable declarations in
tsconfig.json
:However in my case declarations cannot be disabled. Is there a way to make it work with declarations enabled or my only option is to stay on 9.* version?
The text was updated successfully, but these errors were encountered: