We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076f93d commit c4eec6cCopy full SHA for c4eec6c
3 files changed
coverage.svg
deno/lib/playground.ts
@@ -1,14 +1,19 @@
1
import { z } from "./index.ts";
2
3
+Error.stackTraceLimit = 100;
4
const run = async () => {
5
z;
6
7
const myFunc = z
8
.function()
- .args(z.string())
9
+ .args(
10
+ z.object({
11
+ nested: z.object({ qwer: z.string() }),
12
+ })
13
+ )
14
.returns(z.boolean())
- .implement((arg: string) => arg.length > 10);
- myFunc(1234 as any);
15
+ .implement((arg) => arg.nested.qwer.length > 10);
16
+ myFunc({ nested: { qwer: 1234 as any } });
17
};
18
run();
19
package.json
@@ -1,6 +1,6 @@
{
"name": "zod",
- "version": "3.7.2",
+ "version": "3.7.3",
"description": "TypeScript-first schema declaration and validation library with static type inference",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
0 commit comments