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
TS2322: Type 'ZodObject<{ a: ZodString; b: ZodNumber; c: ZodBoolean; }, {}, {}>' is not assignable to type '$ZodObject<Readonly<Readonly<{ [k: string]: $ZodType<unknown, unknown>; }>>, Record<string, unknown>, Record<string, unknown>>'.
Types of property '_zod' are incompatible.
Type '$ZodObjectInternals<{ a: ZodString; b: ZodNumber; c: ZodBoolean; }, {}, {}>' is not assignable to type '$ZodObjectInternals<Readonly<Readonly<{ [k: string]: $ZodType<unknown, unknown>; }>>, Record<string, unknown>, Record<string, unknown>>'.
Type 'Readonly<Readonly<{ [k: string]: $ZodType<unknown, unknown>; }>>' is missing the following properties from type '{ a: ZodString; b: ZodNumber; c: ZodBoolean; }': a, b, c
So that any function expecting $ZodObject argument or a generic argument extending it can no longer accept the returns of z.object() having populated shape.
So that any function expecting
$ZodObject
argument or a generic argument extending it can no longer accept the returns ofz.object()
having populated shape.caused by #4271
@colinhacks
The text was updated successfully, but these errors were encountered: