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
Ran into sub-type errors, (ZodClass is not compatible with ZodType), when trying to add the nullish() method.
node_modules/.pnpm/file+..+.._zod@3.22.4/node_modules/zod-class/lib/cjs/index.d.ts:6:18-errorTS2430: Interface 'ZodClass<Members,Instance,Shape>' incorrectly extends interface 'ZodType<Instance,ZodTypeDef,Instance>'.Thetypesof 'nullish().unwrap()._def.typeName' are incompatible between these types.Type 'ZodFirstPartyTypeKind.ZodOptional' is not assignable to type 'ZodFirstPartyTypeKind.ZodNullable'.
6exportinterfaceZodClass<Members=any,Instance=any,ShapeextendsZodRawShape=ZodRawShape>extendsZodType<Instance>{
For now, have omitted it. Can always be worked around with User.schema().nullish()
The text was updated successfully, but these errors were encountered:
Ran into sub-type errors, (ZodClass is not compatible with ZodType), when trying to add the
nullish()
method.For now, have omitted it. Can always be worked around with
User.schema().nullish()
The text was updated successfully, but these errors were encountered: