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
Describe the bug
a type error in generated InputJsonValueSchema
Screenshots
Running tsc:
db/generated/zod/index.ts:39:14 - error TS2322: Type 'ZodLazy<ZodUnion<[ZodString, ZodNumber, ZodBoolean, ZodObject<{ toJSON: ZodFunction<ZodTuple<[], null>, ZodAny>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodRecord<...>, ZodArray<...>]>>' is not assignable to type 'ZodType<InputJsonValue, ZodTypeDef, InputJsonValue>'.
Types of property '_type' are incompatible.
Type 'string | number | boolean | any[] | { toJSON?: (...args: unknown[]) => any; } | Record<string, any>' is not assignable to type 'InputJsonValue'.
Type '{ toJSON?: (...args: unknown[]) => any; }' is not assignable to type 'InputJsonValue'.
Type '{ toJSON?: (...args: unknown[]) => any; }' is not assignable to type '{ toJSON(): unknown; }'.
Property 'toJSON' is optional in type '{ toJSON?: (...args: unknown[]) => any; }' but required in type '{ toJSON(): unknown; }'.
39 export const InputJsonValueSchema: z.ZodType<Prisma.InputJsonValue> = z.lazy(() =>
~~~~~~~~~~~~~~~~~~~~
Found 1 error in db/generated/zod/index.ts:3
Describe the bug
a type error in generated InputJsonValueSchema
Screenshots
Running
tsc
:Contents of the generated
inputJsonValueSchema
:Package versions (please complete the following information):
Additional context
Zod generator in
schema.prisma
file:The text was updated successfully, but these errors were encountered: