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
Zod is adding the undefined type to all keys that are optional when using the different .partial() modifiers.
How about differentiating them by being present and undefined or just not present at all like typescript does with exactOptionalPropertyTypes: true.
Would it be possible to implement in zod? I guess it could be the default since if you don't care you don't care. Also just using the typescript Partial type will actually honor exactOptionalPropertyTypes by default (on the type level that is).
jameshfisher, akomm, zetaraku, xxshady, ftzi and 14 more