Colin McDonnell
Colin McDonnell
Thanks, we'll look into this. In the meantime you can change the target to `"es6"` without issue. Next.js only uses `"es5"` a very conservative default to support legacy browsers.
It would be great if the error was more informative. Just run a sanity check on the image sizes before running the ffmpeg command so ffmpeg doesn't fail in such...
Unfortunately I don't think getting this clever with extraction of literal values is wise. I modified this PR to make `z.discriminatedUnion` moderately more robust, but all union options still have...
Great stuff @yukukotani and apologies to everyone who waited so long for this. I made some fairly major changes to `ctx.addIssue` in `preprocess`, so it behaved identically to `.superRefine` and...
Yikes, good catch. I pushed a commit to fix the tests, since those weren't updated. I also got rid of the second generic on `ZodCatch` - the value passed into...
Landed in `[email protected]`
Simple repro with ESM: ```ts import Enquirer from 'enquirer'; const answers = await Enquirer.prompt([ { type: 'input', name: 'first_name', message: "What's your first name", }, ]); console.log(answers); ```
This PR has landed in the `v4` branch but it may take some time before it lands in a stable release. In the meantime, I recommend `z.instanceof`: ```ts z.instanceof(File) ```
Thanks, seems reasonable.
This has landed in Zod 3.23. https://github.com/colinhacks/zod/releases/tag/v3.23.0