Skip to content

zod 3.6.1

  • Add IE11 support

  • ZodError.flatten now optionally accepts a map function for customizing the output

  • .void() now only accepts undefined, not null.

  • z.enum now supports Readonly string tuples

    const HTTP_SUCCESS = ["200", "201"] as const;
    const arg = z.enum(HTTP_SUCCESS);