Untyped json should be unknown
not any
#110
Closed
bodinsamuel
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Hey @bodinsamuel, awesome feature request! I'll convert this to an issue. You're up to a PR? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
Love this tool, really solve an immense problem with Prisma.
I just wished it could type
unknown
instead ofany
to avoid silently failing.I'm usually very strict about my typings because it's easy to miss some spot when using
any
. I usually havenoImplicitAny
andstrict: true
but because the types comes from a library it does not raise an error.Typescript themselves are advocating in using unknown, maybe it could be an opt-in (not sure the plugin system allows options).
Looking forward your answer,
Thanks
Beta Was this translation helpful? Give feedback.
All reactions