Skip to content

Commit c4eec6c

Browse files
author
Colin McDonnell
committed
3.7.3
1 parent 076f93d commit c4eec6c

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

coverage.svg

Lines changed: 1 addition & 0 deletions
Loading

deno/lib/playground.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import { z } from "./index.ts";
22

3+
Error.stackTraceLimit = 100;
34
const run = async () => {
45
z;
56

67
const myFunc = z
78
.function()
8-
.args(z.string())
9+
.args(
10+
z.object({
11+
nested: z.object({ qwer: z.string() }),
12+
})
13+
)
914
.returns(z.boolean())
10-
.implement((arg: string) => arg.length > 10);
11-
myFunc(1234 as any);
15+
.implement((arg) => arg.nested.qwer.length > 10);
16+
myFunc({ nested: { qwer: 1234 as any } });
1217
};
1318
run();
1419

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zod",
3-
"version": "3.7.2",
3+
"version": "3.7.3",
44
"description": "TypeScript-first schema declaration and validation library with static type inference",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",

0 commit comments

Comments
 (0)