You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we have an amazing z.object().partial() helper (https://github.com/colinhacks/zod/tree/v3#partial) to mimic the typescript Partial<> util, this could be nice have the symetrical Required<> util.
Ideally, I would like something like this:
.required
Inspired by the built-in TypeScript utility type Required, the .required method makes all properties required.
Hello,
Since we have an amazing
z.object().partial()
helper (https://github.com/colinhacks/zod/tree/v3#partial) to mimic the typescriptPartial<>
util, this could be nice have the symetricalRequired<>
util.Ideally, I would like something like this:
.required
Inspired by the built-in TypeScript utility type Required, the
.required
method makes all properties required.Starting from this object:
We can create a required version:
The text was updated successfully, but these errors were encountered: