MCPcopy Create free account

hub / github.com/colinhacks/zod / functions

Functions2,280 in github.com/colinhacks/zod

↓ 1 callersFunctionnormalizeDef
(def: $ZodObjectDef)
packages/zod/src/v4/core/schemas.ts:2098
↓ 1 callersFunctionnormalizeTabValue
(value: string)
packages/docs/content/api.test.ts:229
↓ 1 callersFunctionnpmReleases
(name: string)
scripts/check-lockstep.ts:13
↓ 1 callersFunctionns
(i: number)
packages/bench/validate-vs-safeparse.ts:163
↓ 1 callersFunctionnullChainCheckSymbol
(x: any)
packages/bench/instanceof.ts:31
↓ 1 callersFunctionnullChainCheckTag
(x: any)
packages/bench/instanceof.ts:32
↓ 1 callersFunctionnullable
()
packages/zod/src/v4/classic/schemas.ts:227
↓ 1 callersFunctionnullable
()
packages/zod/src/v4/classic/tests/recursive-types.test.ts:486
↓ 1 callersFunctionnullable
(innerType: T)
packages/zod/src/v4/mini/schemas.ts:1554
↓ 1 callersFunctionnum
()
packages/zod/src/v3/benchmarks/realworld.ts:25
↓ 1 callersFunctionnumber
(params?: string | core.$ZodNumberParams)
packages/zod/src/v4/classic/schemas.ts:1222
↓ 1 callersFunctionnumber
(params?: string | core.$ZodNumberParams)
packages/zod/src/v4/mini/schemas.ts:615
↓ 1 callersFunctionnumberToBigInt
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:95
↓ 1 callersFunctionobjInput
(n: number)
packages/bench/validate-abort-sweep.ts:27
↓ 1 callersFunctionobjPlain
(input: any)
packages/bench/compile-wrapper-cost.ts:69
↓ 1 callersFunctionobjSentinel
(input: any)
packages/bench/compile-wrapper-cost.ts:53
↓ 1 callersFunctionobjShape
(n: number)
packages/bench/validate-abort-sweep.ts:22
↓ 1 callersFunctionobjTagged
(input: any)
packages/bench/compile-wrapper-cost.ts:61
↓ 1 callersFunctionobjectValues
(obj: any)
packages/zod/src/v3/helpers/util.ts:33
↓ 1 callersFunctionoff
()
packages/bench/validate-abort-sweep.ts:156
↓ 1 callersFunctionomit
(mask)
packages/zod/src/v4/classic/schemas.ts:1716
↓ 1 callersFunctionon
()
packages/bench/validate-abort-sweep.ts:161
↓ 1 callersFunctionoptional
()
packages/zod/src/v4/classic/schemas.ts:221
↓ 1 callersFunctionoptional
(innerType: T)
packages/zod/src/v4/mini/schemas.ts:1511
↓ 1 callersFunctionoutcome
(fn: () => unknown)
packages/zod/src/v4/classic/tests/validate.test.ts:250
↓ 1 callersFunctionoutcomeAsync
(fn: () => Promise<unknown>)
packages/zod/src/v4/classic/tests/validate.test.ts:522
↓ 1 callersMethodoverride
@deprecated Access via ctx instead
packages/zod/src/v4/core/json-schema-generator.ts:65
↓ 1 callersFunctionownLineComments
Line-owning `//` comments, keyed by zero-based line number. Trailing `// note` after code never stacks.
scripts/check-comments.ts:65
↓ 1 callersFunctionpad
(s: string, n: number)
packages/bench/validate-abort-sweep.ts:221
↓ 1 callersFunctionpad
(s: string, n: number)
packages/bench/compile-matrix.ts:273
↓ 1 callersFunctionpad
(s: string, n: number)
packages/bench/validate-vs-safeparse.ts:241
↓ 1 callersFunctionpadL
(s: string, n: number)
packages/bench/validate-abort-sweep.ts:222
↓ 1 callersFunctionpadL
(s: string, n: number)
packages/bench/compile-matrix.ts:274
↓ 1 callersFunctionpadL
(s: string, n: number)
packages/bench/validate-vs-safeparse.ts:242
↓ 1 callersMethodparameters
()
packages/zod/src/v3/types.ts:3904
↓ 1 callersFunctionparseArgs
(argv: string[])
packages/bench/compile-vs-arktype.ts:56
↓ 1 callersFunctionparseArgs
(argv: string[])
scripts/triage-signal.ts:25
↓ 1 callersFunctionparseArgsOrExit
()
packages/bench/compile-vs-arktype.ts:101
↓ 1 callersFunctionparseCaseValue
(value: string)
packages/bench/compile-vs-arktype.ts:45
↓ 1 callersFunctionparseNestedObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:84
↓ 1 callersFunctionparseNumberArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:114
↓ 1 callersFunctionparseObjectArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:124
↓ 1 callersFunctionparseSimpleObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:76
↓ 1 callersFunctionparseStr
(k: string)
packages/zod/src/v4/core/schemas.ts:2288
↓ 1 callersFunctionpartPattern
(schema: $ZodType)
packages/zod/src/v4/core/schemas.ts:4760
↓ 1 callersFunctionpartial
(...args)
packages/zod/src/v4/classic/schemas.ts:1719
↓ 1 callersFunctionpick
(mask)
packages/zod/src/v4/classic/schemas.ts:1713
↓ 1 callersFunctionpipe
(target)
packages/zod/src/v4/classic/schemas.ts:257
↓ 1 callersFunctionpipe
()
packages/zod/src/v4/classic/tests/recursive-types.test.ts:501
↓ 1 callersFunctionplural
(n: number)
packages/zod/src/v4/classic/from-json-schema.ts:302
↓ 1 callersFunctionpositive
(params)
packages/zod/src/v4/classic/schemas.ts:1197
↓ 1 callersFunctionprefixStr
(id: string, k: string)
packages/zod/src/v4/core/schemas.ts:2291
↓ 1 callersFunctionproblems
()
scripts/check-lockstep.ts:41
↓ 1 callersFunctionpropKey
(k: string | symbol)
packages/zod/src/v4/core/compile.ts:1210
↓ 1 callersFunctionproseBlocks
(fileName: string, text: string, lines: string[])
scripts/check-comments.ts:92
↓ 1 callersFunctionprotoInput
()
packages/zod/src/v4/classic/tests/object.test.ts:672
↓ 1 callersFunctionprotoNode
(obj: any)
packages/zod/src/v4/classic/tests/error-utils.test.ts:847
↓ 1 callersFunctionquery
(body: string)
packages/docs/loaders/stars.ts:6
↓ 1 callersFunctionraw
()
packages/bench/error-construction-breakdown.ts:15
↓ 1 callersFunctionrawShape
(def: any)
packages/zod/src/v4/core/util.ts:391
↓ 1 callersFunctionreadCodeFence
(lines: SourceLine[], fenceStartIndex: number, startLine: number)
packages/docs/content/api.test.ts:166
↓ 1 callersFunctionreadDeep
(n: number, make: () => T)
packages/zod/src/v4/classic/tests/error.test.ts:1057
↓ 1 callersFunctionreadNodes
(file: string)
packages/bench/memory/snapshot.ts:48
↓ 1 callersFunctionreadReactions
(groups: { content: string; users: { totalCount: number } }[])
scripts/triage-signal.ts:267
↓ 1 callersFunctionrecord
( keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams )
packages/zod/src/v4/classic/schemas.ts:1969
↓ 1 callersFunctionrecord
( keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams )
packages/zod/src/v4/mini/schemas.ts:1286
↓ 1 callersFunctionrefine
(check, params)
packages/zod/src/v4/classic/schemas.ts:212
↓ 1 callersFunctionrefusedCases
()
packages/zod/src/v4/core/tests/compile.test.ts:1622
↓ 1 callersMethodregister
( registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [core
packages/zod/src/v4/classic/schemas.ts:57
↓ 1 callersFunctionregistry
()
packages/zod/src/v4/core/registries.ts:90
↓ 1 callersFunctionrejected
(schema: z.ZodType)
packages/bench/memory/compiled-slope.ts:20
↓ 1 callersMethodremoveCatch
@deprecated Use `.unwrap()` instead.
packages/zod/src/v4/classic/schemas.ts:2499
↓ 1 callersFunctionreport
(rows: Row[], problems: string[])
packages/bench/compile-matrix.ts:276
↓ 1 callersFunctionrequired
(schema: z.ZodObject)
packages/zod/src/v4/classic/tests/to-json-schema.test.ts:3858
↓ 1 callersFunctionrequiresPresenceCheck
(schema: SomeType)
packages/zod/src/v4/core/compile.ts:1398
↓ 1 callersFunctionresolveRef
(ref: string, ctx: ConversionContext)
packages/zod/src/v4/classic/from-json-schema.ts:132
↓ 1 callersFunctionrestoreURL
()
packages/zod/src/v4/core/tests/url-no-canparse.test.ts:8
↓ 1 callersFunctionretained
Retained bytes per compiled function: the schemas are built and held before the baseline, so only the compile lands in the delta.
packages/bench/memory/indent-leak.ts:50
↓ 1 callersFunctionretainedMedian
(make: (p: string) => z.ZodType, n: number, leak: boolean, passes: number)
packages/bench/memory/indent-leak.ts:41
↓ 1 callersMethodreturnType
()
packages/zod/src/v3/types.ts:3908
↓ 1 callersMethodreturns
(returnType: NewReturnType)
packages/zod/src/v3/types.ts:3921
↓ 1 callersFunctionrevealing
()
packages/zod/src/v4/core/tests/compile.test.ts:1773
↓ 1 callersFunctionrewriteKeyNames
(ctx: ToJSONSchemaContext)
packages/zod/src/v4/core/json-schema-processors.ts:638
↓ 1 callersFunctionright
()
packages/zod/src/v4/classic/tests/cyclic-data.test.ts:632
↓ 1 callersFunctionrng
(seed: number)
packages/zod/src/v4/core/tests/email-regex.test.ts:75
↓ 1 callersFunctionrun
()
packages/tsc/bench/index.ts:5
↓ 1 callersFunctionrun
(xs: string[], max: number)
packages/zod/src/v4/core/tests/email-regex.test.ts:93
↓ 1 callersFunctionrunAll
* Rounds are interleaved across all cases rather than run case-by-case, so a * transient (thermal, GC, other processes) hits every case roughly equal
packages/bench/memory/throughput.ts:30
↓ 1 callersFunctionrunAllTests
()
packages/resolution/test-resolution.ts:78
↓ 1 callersFunctionruntimeParse
()
packages/bench/compile-matrix.ts:364
↓ 1 callersFunctionsafeParseOn
(s: z.ZodType)
packages/bench/validate-vs-safeparse.ts:141
↓ 1 callersFunctionsame
(a: unknown, b: unknown, path = "$")
scripts/compile-fuzz.ts:217
↓ 1 callersFunctionsameModuloIndent
(a: string, b: string)
packages/bench/memory/indent-leak.ts:35
↓ 1 callersFunctionsample
(fn: () => unknown, iters: number)
packages/bench/error-construction-breakdown.ts:21
↓ 1 callersFunctionscore
(item: Item, now: number)
scripts/triage-signal.ts:334
↓ 1 callersFunctionser
JSON.stringify throws on BigInt and drops Symbols, Maps and Sets — none of which the grammar can avoid generating.
scripts/compile-fuzz.ts:280
↓ 1 callersFunctionsetError
()
packages/zod/src/v3/types.ts:346
↓ 1 callersMethodsetKey
( key: Key, schema: Schema )
packages/zod/src/v3/types.ts:2737
↓ 1 callersFunctionsettle
An assumed answer must not outlive the resolution that settles it, so only a certain one is cached.
packages/zod/src/v4/core/memoizer.ts:184
↓ 1 callersFunctionshadowing
()
packages/zod/src/v4/core/tests/compile.test.ts:1758
← previousnext →901–1,000 of 2,280, ranked by callers