risen228 / nestjs-zod-prisma

Zod Prisma fork for nestjs-zod
MIT License
62 stars 11 forks source link

Wrong z.instanceof generation #14

Open yangricardo opened 1 year ago

yangricardo commented 1 year ago

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: