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

Function makeSchema

packages/bench/benchUtil.ts:6–12  ·  view source on GitHub ↗
(factory: (z: typeof zod4) => T)

Source from the content-addressed store, hash-verified

4
5export { zod3, zod4, zodNext };
6export function makeSchema<T>(factory: (z: typeof zod4) => T) {
7 return {
8 zod3: factory(zod3 as any) as T,
9 zod4: factory(zod4 as any) as T,
10 // zod4Ts: factory(zodNewTs as any),
11 };
12}
13
14export function randomString(length: number): string {
15 const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";

Callers 7

object-setup.tsFile · 0.70
union.tsFile · 0.70
boolean.tsFile · 0.70
array.tsFile · 0.70
number.tsFile · 0.70
string.tsFile · 0.70
datetime.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected