Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colinhacks/zod
/ functions
Functions
2,105 in github.com/colinhacks/zod
⨍
Functions
2,105
◇
Types & classes
848
↓ 1 callers
Function
nestedPlain
(input: any)
packages/bench/compile-wrapper-cost.ts:134
↓ 1 callers
Function
nestedTagged
(input: any)
packages/bench/compile-wrapper-cost.ts:128
↓ 1 callers
Function
never
(params?: string | core.$ZodNeverParams)
packages/zod/src/v4/mini/schemas.ts:810
↓ 1 callers
Function
newError
(Definition: new () => any)
packages/zod/src/v4/core/core.ts:30
↓ 1 callers
Function
newestMtime
(dir: string)
packages/treeshake/default-locale.test.ts:24
↓ 1 callers
Function
node
Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member * ("toString", "constructor") would otherwise read throug
packages/zod/src/v4/core/errors.ts:314
↓ 1 callers
Function
normalize
(node: any, kind: "issue" | "pr")
scripts/triage-signal.ts:278
↓ 1 callers
Function
normalizeDef
(def: $ZodObjectDef)
packages/zod/src/v4/core/schemas.ts:1997
↓ 1 callers
Function
normalizeTabValue
(value: string)
packages/docs/content/api.test.ts:229
↓ 1 callers
Function
nullChainCheckSymbol
(x: any)
packages/bench/instanceof.ts:31
↓ 1 callers
Function
nullChainCheckTag
(x: any)
packages/bench/instanceof.ts:32
↓ 1 callers
Function
nullable
()
packages/zod/src/v4/classic/schemas.ts:224
↓ 1 callers
Function
nullable
()
packages/zod/src/v4/classic/tests/recursive-types.test.ts:441
↓ 1 callers
Function
nullable
(innerType: T)
packages/zod/src/v4/mini/schemas.ts:1529
↓ 1 callers
Function
num
()
packages/zod/src/v3/benchmarks/realworld.ts:25
↓ 1 callers
Function
number
(params?: string | core.$ZodNumberParams)
packages/zod/src/v4/classic/schemas.ts:1185
↓ 1 callers
Function
number
(params?: string | core.$ZodNumberParams)
packages/zod/src/v4/mini/schemas.ts:592
↓ 1 callers
Function
numberToBigInt
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:95
↓ 1 callers
Function
objPlain
(input: any)
packages/bench/compile-wrapper-cost.ts:69
↓ 1 callers
Function
objSentinel
(input: any)
packages/bench/compile-wrapper-cost.ts:53
↓ 1 callers
Function
objTagged
(input: any)
packages/bench/compile-wrapper-cost.ts:61
↓ 1 callers
Function
object
()
packages/zod/src/v4/classic/tests/recursive-types.test.ts:465
↓ 1 callers
Function
objectValues
(obj: any)
packages/zod/src/v3/helpers/util.ts:33
↓ 1 callers
Function
omit
(mask)
packages/zod/src/v4/classic/schemas.ts:1664
↓ 1 callers
Function
optional
()
packages/zod/src/v4/classic/schemas.ts:218
↓ 1 callers
Function
optional
(innerType: T)
packages/zod/src/v4/mini/schemas.ts:1486
↓ 1 callers
Method
override
@deprecated Access via ctx instead
packages/zod/src/v4/core/json-schema-generator.ts:65
↓ 1 callers
Function
ownLineComments
Line-owning `//` comments, keyed by zero-based line number. Trailing `// note` after code never stacks.
scripts/check-comments.ts:65
↓ 1 callers
Function
pad
(s: string, n: number)
packages/bench/compile-matrix.ts:272
↓ 1 callers
Function
padL
(s: string, n: number)
packages/bench/compile-matrix.ts:273
↓ 1 callers
Method
parameters
()
packages/zod/src/v3/types.ts:3904
↓ 1 callers
Function
parseArgs
(argv: string[])
packages/bench/compile-vs-arktype.ts:56
↓ 1 callers
Function
parseArgs
(argv: string[])
scripts/triage-signal.ts:25
↓ 1 callers
Function
parseArgsOrExit
()
packages/bench/compile-vs-arktype.ts:101
↓ 1 callers
Function
parseCaseValue
(value: string)
packages/bench/compile-vs-arktype.ts:45
↓ 1 callers
Function
parseNestedObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:84
↓ 1 callers
Function
parseNumberArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:114
↓ 1 callers
Function
parseObjectArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:124
↓ 1 callers
Function
parseSimpleObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:76
↓ 1 callers
Function
parseStr
(k: string)
packages/zod/src/v4/core/schemas.ts:2180
↓ 1 callers
Function
parseURLObject
( trimmed: string, def: Pick<$ZodURLDef, "protocol" | "normalize"> )
packages/zod/src/v4/core/schemas.ts:518
↓ 1 callers
Function
partial
(...args)
packages/zod/src/v4/classic/schemas.ts:1667
↓ 1 callers
Function
pick
(mask)
packages/zod/src/v4/classic/schemas.ts:1661
↓ 1 callers
Function
pipe
(target)
packages/zod/src/v4/classic/schemas.ts:254
↓ 1 callers
Function
pipe
()
packages/zod/src/v4/classic/tests/recursive-types.test.ts:456
↓ 1 callers
Function
positive
(params)
packages/zod/src/v4/classic/schemas.ts:1161
↓ 1 callers
Function
prefixStr
(id: string, k: string)
packages/zod/src/v4/core/schemas.ts:2183
↓ 1 callers
Function
propKey
(k: string | symbol)
packages/zod/src/v4/core/compile.ts:1121
↓ 1 callers
Function
proseBlocks
(fileName: string, text: string, lines: string[])
scripts/check-comments.ts:92
↓ 1 callers
Function
protoInput
()
packages/zod/src/v4/classic/tests/object.test.ts:672
↓ 1 callers
Function
protoNode
(obj: any)
packages/zod/src/v4/classic/tests/error-utils.test.ts:847
↓ 1 callers
Function
readCodeFence
(lines: SourceLine[], fenceStartIndex: number, startLine: number)
packages/docs/content/api.test.ts:166
↓ 1 callers
Function
readNodes
(file: string)
packages/bench/memory/snapshot.ts:48
↓ 1 callers
Function
readReactions
(groups: { content: string; users: { totalCount: number } }[])
scripts/triage-signal.ts:267
↓ 1 callers
Function
readingMinutes
(page: any)
packages/docs/loaders/source.ts:38
↓ 1 callers
Function
record
( keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams )
packages/zod/src/v4/classic/schemas.ts:1917
↓ 1 callers
Function
record
( keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams )
packages/zod/src/v4/mini/schemas.ts:1262
↓ 1 callers
Function
refine
(check, params)
packages/zod/src/v4/classic/schemas.ts:209
↓ 1 callers
Function
refusedCases
()
packages/zod/src/v4/core/tests/compile.test.ts:1571
↓ 1 callers
Method
register
( registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [core
packages/zod/src/v4/classic/schemas.ts:56
↓ 1 callers
Function
registry
()
packages/zod/src/v4/core/registries.ts:90
↓ 1 callers
Method
removeCatch
@deprecated Use `.unwrap()` instead.
packages/zod/src/v4/classic/schemas.ts:2446
↓ 1 callers
Function
report
(rows: Row[], problems: string[])
packages/bench/compile-matrix.ts:275
↓ 1 callers
Function
required
(schema: z.ZodObject)
packages/zod/src/v4/classic/tests/to-json-schema.test.ts:3564
↓ 1 callers
Function
requiresPresenceCheck
(schema: SomeType)
packages/zod/src/v4/core/compile.ts:1309
↓ 1 callers
Function
resolveRef
(ref: string, ctx: ConversionContext)
packages/zod/src/v4/classic/from-json-schema.ts:132
↓ 1 callers
Method
returnType
()
packages/zod/src/v3/types.ts:3908
↓ 1 callers
Method
returns
(returnType: NewReturnType)
packages/zod/src/v3/types.ts:3921
↓ 1 callers
Function
right
()
packages/zod/src/v4/classic/tests/cyclic-data.test.ts:630
↓ 1 callers
Function
run
()
packages/tsc/bench/index.ts:5
↓ 1 callers
Function
runAll
* 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 callers
Function
runAllTests
()
packages/resolution/test-resolution.ts:78
↓ 1 callers
Function
runtimeParse
()
packages/bench/compile-matrix.ts:363
↓ 1 callers
Function
safeParseAsync
(data, params)
packages/zod/src/v4/classic/schemas.ts:303
↓ 1 callers
Function
same
(a: unknown, b: unknown, path = "$")
scripts/compile-fuzz.ts:216
↓ 1 callers
Function
score
(item: Item, now: number)
scripts/triage-signal.ts:334
↓ 1 callers
Function
ser
JSON.stringify throws on BigInt and drops Symbols, Maps and Sets — none of which the grammar can avoid generating.
scripts/compile-fuzz.ts:279
↓ 1 callers
Function
setError
()
packages/zod/src/v3/types.ts:346
↓ 1 callers
Method
setKey
( key: Key, schema: Schema )
packages/zod/src/v3/types.ts:2737
↓ 1 callers
Function
shape
(z: any)
packages/bench/failing-safeparse.ts:19
↓ 1 callers
Function
shape
(schema: z.ZodType)
packages/zod/src/v4/classic/tests/object.test.ts:798
↓ 1 callers
Function
shim
(payload: any, ctx: any)
packages/zod/src/compile.ts:23
↓ 1 callers
Function
snap
(schema: z.ZodType, value: unknown)
packages/zod/src/v4/core/tests/compile.test.ts:1565
↓ 1 callers
Function
snapshotNow
(tag: string)
packages/bench/memory/retainers.ts:85
↓ 1 callers
Function
standardProps
(inst: $ZodType)
packages/zod/src/v4/core/schemas.ts:338
↓ 1 callers
Function
str
()
packages/zod/src/v3/benchmarks/realworld.ts:29
↓ 1 callers
Function
strPlain
(input: unknown)
packages/bench/compile-wrapper-cost.ts:31
↓ 1 callers
Function
strSentinel
(input: unknown)
packages/bench/compile-wrapper-cost.ts:21
↓ 1 callers
Function
strTagged
(input: unknown)
packages/bench/compile-wrapper-cost.ts:26
↓ 1 callers
Function
stringToBigInt
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:66
↓ 1 callers
Function
stringToBoolean
(options?: { truthy?: string[]; falsy?: string[] })
packages/zod/src/v4/classic/tests/codec-examples.test.ts:489
↓ 1 callers
Function
stringToHttpURL
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:423
↓ 1 callers
Function
stringToInt
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:37
↓ 1 callers
Function
stringToNumber
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:8
↓ 1 callers
Function
stringToURL
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:393
↓ 1 callers
Function
stringifyPrimitive
(value: any)
packages/zod/src/v4/core/util.ts:607
↓ 1 callers
Function
stringifyTitle
(title: any)
packages/docs/app/llms.txt/route.ts:6
↓ 1 callers
Function
stripBackticks
(text: string)
packages/docs/components/inline-code-title.tsx:15
↓ 1 callers
Function
stripMdxCommentSegments
(line: string, state: { inComment: boolean })
packages/docs/content/api.test.ts:123
↓ 1 callers
Function
stripMdxComments
(source: string)
packages/docs/content/api.test.ts:100
← previous
next →
801–900 of 2,105, ranked by callers