MCPcopy
hub / github.com/colinhacks/zod / zod4

Function zod4

packages/bench/error-handling.ts:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12const bench = metabench("safeparse error", {
13 zod4() {
14 for (const _ of DATA) {
15 try {
16 a.safeParse(_);
17 } catch (_e) {
18 _e;
19 }
20 }
21 },
22 zod4new() {
23 for (const _ of DATA) {
24 try {

Callers

nothing calls this directly

Calls 1

safeParseMethod · 0.65

Tested by

no test coverage detected