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
Hey everyone, I seem to have run into an issue but I'm unsure if this is by design or there's a way around this.
z.infer seems to skip an entire schema and only shows a schema of shared fields only for a nested field with a union type.
field: z
.union([zod1Schema, zod2Schema])
.nullable()
.optional(),
The result is a type that only shows what's shared between the two schemas and ignores fields from zod2Schema.
The text was updated successfully, but these errors were encountered:
Hey everyone, I seem to have run into an issue but I'm unsure if this is by design or there's a way around this.
z.infer seems to skip an entire schema and only shows a schema of shared fields only for a nested field with a union type.
The result is a type that only shows what's shared between the two schemas and ignores fields from zod2Schema.
The text was updated successfully, but these errors were encountered: