nestjs-zod-prisma
nestjs-zod-prisma copied to clipboard
Wrong z.instanceof generation
Hi,
I have a prisma model that is defined as bytes. By using this generator, the zod schema validator is generating a wrong z.instanceOf(Buffer)
instead z.instanceof(Buffer)
by displaying this error
Property 'instanceOf' does not exist on type 'typeof import("/home/user/projects/api/node_modules/nestjs-zod/z")'. Did you mean 'instanceof'?ts(2551)
This is occuring by using the library versions:
-
prisma
: 5.1.1 -
@prisma/client
: 5.1.1 -
nestjs-zod
: 2.3.3 -
nestjs-zod-prisma
: 3.0.1