mirror of
https://github.com/hanzoai/zod.git
synced 2026-09-24 17:04:49 +00:00
* 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
10 lines
160 B
TypeScript
10 lines
160 B
TypeScript
import * as z from "zod/mini"
|
|
|
|
const schema = z.object({ a: z.string(), b: z.number(), c: z.boolean() });
|
|
|
|
schema.parse({
|
|
a: "asdf",
|
|
b: 123,
|
|
c: true,
|
|
});
|