-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Object with Generic Properties makes the properties optional #3334
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
Comments
Same here, but then I found out |
@YogaLin, While debugging further, I came across something weird, that it's actually the reverse for me. Setting |
Changing to |
|
Uh oh!
There was an error while loading. Please reload this page.
In the following code, if I use generic parameters to create some validators, as in
ValidatorFactory
, this makes all the non static properties optional. Is this a limitation on Typescript or Zod?I believe it may also be similar to #2077
Also believing that it may be caused by #3330, I can verify that
"strict":true
has been set in tsconfig.jsonThanks in Advance for any help
The text was updated successfully, but these errors were encountered: