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 flag for typescript to use unknown instead of any #1619
Comments
Currently as I'm only generating types I'm doing this: lines.map(line =>
// Convert any to unknown. Related:
line.replace(/([ <,])any\b/g,"$1unknown")
).join("\n") |
RichiCoder1
added a commit
to RichiCoder1/quicktype
that referenced
this issue
Mar 1, 2023
Adds support for `unknown` (and it's flow equivalent) in TypeScript. Closes glideapps#1619
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to allow some flag which results in use of unknown instead of any in the generated types.
The text was updated successfully, but these errors were encountered: