mirror of
https://github.com/hanzoai/zod.git
synced 2026-09-24 17:04:49 +00:00
11 lines
243 B
TypeScript
11 lines
243 B
TypeScript
import * as z from "zod/v4"
|
|
|
|
// z.string().check(
|
|
// z.minLength(5),
|
|
// z.maxLength(10),
|
|
// z.refine(val => val.includes("@")),
|
|
// z.trim()
|
|
// );
|
|
|
|
z.string().min(5).max(10).refine(val => val.includes("@")).trim().parse("asd@adsf");;
|