incetarik / nestjs-graphql-zod

A library providing dynamic GraphQL object classes from their zod validation objects.
Mozilla Public License 2.0
83 stars 10 forks source link

@ZodArgs with z.instanceof #29

Open RATCHAW opened 3 months ago

RATCHAW commented 3 months ago

Hi, Any idea on how I can make use of setDefaultTypeProvider in this case?

ZodArgs(
      z.object({
        image: z.instanceof(File),
      }),
    )

Error: Unsupported type info of Key("image") of Type("Any")