Skip to content
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

Add strict mode #1156

Open
mrlubos opened this issue Oct 14, 2024 · 5 comments
Open

Add strict mode #1156

mrlubos opened this issue Oct 14, 2024 · 5 comments
Labels
feature 🚀 New feature or request RSVP 👍👎 Explicit request for reactions to gauge interest in resolving this issue

Comments

@mrlubos
Copy link
Member

mrlubos commented Oct 14, 2024

Reference comment

I plan to add strict and loose modes that would either throw on any invalid definition or try to compile at the expense of output quality.

@mrlubos mrlubos added feature 🚀 New feature or request RSVP 👍👎 Explicit request for reactions to gauge interest in resolving this issue labels Oct 14, 2024
@jh-aimpera
Copy link

jh-aimpera commented Dec 12, 2024

This would really be a great addition! Atm I'm looking for a work around, because in my nextjs application i use typescript in strict mode and the generated files use implicit anys in my case.

@mrlubos
Copy link
Member Author

mrlubos commented Dec 12, 2024

@jonas-hallwachs-aimpera are you referencing transformers? This issue is about a different problem, but we can talk about your use case too

@jh-aimpera
Copy link

@mrlubos ah sorry, if this a different topic. But yes, indeed my problem is with one of the date transformers

@mrlubos
Copy link
Member Author

mrlubos commented Dec 12, 2024

Yeah that's doable, just hasn't been prioritised. We'd need to generate a copy of types without the transformed values and use it instead of any.

@jh-aimpera
Copy link

That would be really great!
My workaround for the moment is that i just prefix the generated file with // @ts-nocheck via a script.

Feel free to keep me posted of any further developments on this topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New feature or request RSVP 👍👎 Explicit request for reactions to gauge interest in resolving this issue
Projects
None yet
Development

No branches or pull requests

2 participants