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
All properties are now required in Zod 4 unless they are `.optional()`
or `.default()`.
That fact is now reflected by `._zod.optionality`
Direction matters.
External bugs:
- colinhacks/zod#4322
nativeEnum: "A" | "apple" | "banana" | "cantaloupe" | 5;
63
63
lazy: SomeType;
64
64
discUnion: {
@@ -73,7 +73,7 @@ exports[`zod-to-ts > Example > should produce the expected results 1`] = `
73
73
y: number;
74
74
};
75
75
branded: string;
76
-
catch?: number;
76
+
catch: number;
77
77
pipeline: string;
78
78
readonly: string;
79
79
}"
@@ -127,15 +127,15 @@ exports[`zod-to-ts > Issue #2352: intersection of objects having same prop %# >
127
127
"{
128
128
query: string;
129
129
}&{
130
-
query?:string|undefined;
130
+
query?:string;
131
131
}"
132
132
`;
133
133
134
134
exports[`zod-to-ts > Issue #2352: intersection of objects having same prop %# > should not flatten the result for objects with a conflicting prop 3 1`] =`
0 commit comments