MCPcopy
hub / github.com/colinhacks/zod / generics.test.ts

File generics.test.ts

packages/zod/src/v4/classic/tests/generics.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { expect, expectTypeOf, test } from "vitest";
2import * as z from "zod/v4";
3
4function nest<TData extends z.ZodType>(schema: TData) {

Callers

nothing calls this directly

Calls 8

nestFunction · 0.85
createV4SchemaFunction · 0.85
stringMethod · 0.80
optionalMethod · 0.80
orMethod · 0.80
arrayMethod · 0.80
stripOuterFunction · 0.70
safeParseMethod · 0.65

Tested by

no test coverage detected