We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
any
unknown
Currently, empty forms are generated as any type.
In TypeScript, there are few situations where the any type is more suitable than the unknown type.
Both are tolerant of assignments. unknown is more type-safe than any because it is strictly for reference.
I think the unknown type is better suited for the role of a code generator.
The text was updated successfully, but these errors were encountered:
As a work around to the above, you could do something like the following to explicitly output an unknown type:
{ "data": { "metadata": { "typescriptType": "unknown" } } }
Sorry, something went wrong.
No branches or pull requests
Currently, empty forms are generated as
any
type.In TypeScript, there are few situations where the
any
type is more suitable than theunknown
type.Both are tolerant of assignments.
unknown
is more type-safe thanany
because it is strictly for reference.I think the
unknown
type is better suited for the role of a code generator.The text was updated successfully, but these errors were encountered: