Files
Colin McDonnellandGitHub 04ad5b66c4 v4.0.0 (#4844)
* Update docs for zod@4

* Exclude tests

* Update /mini entrypoint

* Add locales, switch from /v4-mini to /mini

* Update play

* Update attw

* Update resolution tests

* Update release.yml

* Add versioning.mdx

* Update docs

* 4.0.0

* Fix lint
2025-07-09 11:46:23 -07:00

9 lines
158 B
TypeScript

import * as z from "zod/mini"
z.string().check(
z.minLength(5),
z.maxLength(10),
z.refine(val => val.includes("@")),
z.trim()
).parse("asd@adsf");