Typescript Strict mode compatibility #11805
Unanswered
diovannaschell
asked this question in
Q&A
Replies: 3 comments
-
@diovannaschell have you ended up find a somewhat elegant solution for this? I was thinking of use some type guards but just wondering if you found something |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 on this. This is the first time I experience this problem and I'd really like to avoid turning off strict mode. What's going on here? Clearly the type accepts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Thanks for all the work with prisma!
I'm trying to update my APIs to use the typescript on Strict mode especially because of the strict null acertions, but enabling this option broke 90% of my code with prisma:
This is just one example, but almost every where condition in my code now prompts this errors
this is how vsCode shows the
deleted
property on mouse hover(property) deleted?: string | Prisma.StringNullableFilter | null | undefined
Am I missing something? Typescript Strict mode can be used with prisma?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions