remix-params-helper icon indicating copy to clipboard operation
remix-params-helper copied to clipboard

Unexpected type ZodAny using instanceof

Open malmz opened this issue 9 months ago • 0 comments

I have a schema for uploading files using the remix fileuploader api.

const schema = z.object({
  files: z.array(z.instanceof(NodeOnDiskFile),
});

Trying to parse the form data with this schema throws Unexpected type ZodAny for key files

malmz avatar May 20 '24 22:05 malmz