Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colinhacks/zod
/ functions
Functions
2,280 in github.com/colinhacks/zod
⨍
Functions
2,280
◇
Types & classes
877
↓ 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
shape
(sh: object, spread: boolean)
packages/zod/src/v4/core/memoizer.ts:66
↓ 1 callers
Function
shape
(value: unknown)
packages/zod/src/v4/core/tests/compile-generative.test.ts:389
↓ 1 callers
Function
shim
(payload: any, ctx: any)
packages/zod/src/compile.ts:23
↓ 1 callers
Function
skips
(b: z.ZodType, value: unknown = "x")
packages/zod/src/v4/classic/tests/validate.test.ts:426
↓ 1 callers
Function
slope
(label: string, make: (p: string) => unknown, n: number)
packages/bench/memory/compiled-slope.ts:28
↓ 1 callers
Function
snap
(schema: z.ZodType, value: unknown)
packages/zod/src/v4/core/tests/compile.test.ts:1616
↓ 1 callers
Function
snapshotNow
(tag: string)
packages/bench/memory/retainers.ts:85
↓ 1 callers
Function
source
(schema: z.ZodType)
packages/bench/memory/indent-leak.ts:33
↓ 1 callers
Function
source
()
packages/zod/src/v4/classic/tests/object.test.ts:880
↓ 1 callers
Function
standardProps
(inst: $ZodType)
packages/zod/src/v4/core/schemas.ts:346
↓ 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
stringifyKeyNames
JSON object keys are always strings, so a numeric record key schema is re-expressed over the * numeric-string form the record parser matches. Deferre
packages/zod/src/v4/core/json-schema-processors.ts:594
↓ 1 callers
Function
stringifyPrimitive
(value: any)
packages/zod/src/v4/core/util.ts:720
↓ 1 callers
Function
stringifyTitle
(title: any)
packages/docs/app/llms.txt/route.ts:6
↓ 1 callers
Function
strip
(s: string)
packages/bench/memory/indent-leak.ts:36
↓ 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
↓ 1 callers
Function
stripOuter
(schema: TData, data: unknown)
packages/zod/src/v3/tests/generics.test.ts:8
↓ 1 callers
Function
stripOuter
(schema: TData, data: unknown)
packages/zod/src/v4/classic/tests/generics.test.ts:21
↓ 1 callers
Function
stripTabAndNewline
(value: string)
packages/zod/src/v4/core/schemas.ts:573
↓ 1 callers
Function
sync
()
packages/docs/components/blog-toc.tsx:41
↓ 1 callers
Function
table
(items: Scored[], now: number, opts: { pr?: boolean; base?: boolean } = {})
scripts/triage-signal.ts:443
↓ 1 callers
Function
tag
(value: "a" | "b")
packages/zod/src/v4/classic/tests/discriminated-unions.test.ts:744
↓ 1 callers
Function
takeSnapshot
(tag: string)
packages/bench/memory/snapshot.ts:41
↓ 1 callers
Function
tally
(rows: NodeRow[])
packages/bench/memory/snapshot.ts:73
↓ 1 callers
Function
testCjs
()
packages/resolution/test-resolution.ts:36
↓ 1 callers
Function
testJs
()
packages/resolution/test-resolution.ts:64
↓ 1 callers
Function
testMjs
()
packages/resolution/test-resolution.ts:50
↓ 1 callers
Function
throwAsync
A predicate that hands back a thenable is an async check reached synchronously, and the interpreter throws `$ZodAsyncError` for it. Returning INVALID
packages/zod/src/v4/core/compile.ts:675
↓ 1 callers
Function
thrower
(method: string)
scripts/fail-on-console.ts:5
↓ 1 callers
Function
time
(schema: any)
packages/bench/failing-safeparse.ts:29
↓ 1 callers
Function
time
(fn: () => unknown, iters: number)
packages/bench/compile-scaling.ts:32
↓ 1 callers
Function
timeOnce
(fn: () => void, ms: number)
packages/bench/memory/throughput.ts:8
↓ 1 callers
Function
timeRegex
(args: { offset?: boolean; local?: boolean; precision?: number | null; })
packages/zod/src/v3/types.ts:664
↓ 1 callers
Function
timed
(fn: () => void, iters: number)
packages/bench/validate-abort-sweep.ts:127
↓ 1 callers
Function
timed
(fn: () => void, iters: number)
packages/bench/validate-vs-safeparse.ts:107
↓ 1 callers
Function
titleTokens
(title: string)
scripts/triage-signal.ts:372
↓ 1 callers
Function
toB64Url
(b64: string)
packages/zod/src/v4/classic/tests/hash.test.ts:10
↓ 1 callers
Function
toDotPath
(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[])
packages/zod/src/v4/core/errors.ts:514
↓ 1 callers
Function
toFixed
(val: number)
packages/bench/benchUtil.ts:69
↓ 1 callers
Function
trackedFiles
()
scripts/check-comments.ts:108
↓ 1 callers
Function
translateOriginWithArticle
( type: $ZodInvalidTypeExpected | (string & {}), articleType: "definite" | "indefinite" )
packages/zod/src/v4/locales/pt-BR.ts:89
↓ 1 callers
Function
translateOriginWithArticle
( type: $ZodInvalidTypeExpected | (string & {}), articleType: "definite" | "indefinite" )
packages/zod/src/v4/locales/pt.ts:89
↓ 1 callers
Function
tuple
( items: core.SomeType[], _paramsOrRest?: string | core.$ZodTupleParams | core.SomeType, _params?: strin
packages/zod/src/v4/classic/schemas.ts:1933
↓ 1 callers
Function
tuple
( items: SomeType[], _paramsOrRest?: string | core.$ZodTupleParams | SomeType, _params?: string | core.$
packages/zod/src/v4/mini/schemas.ts:1254
↓ 1 callers
Function
twins
(a: Releases, b: Releases)
scripts/check-lockstep.ts:31
↓ 1 callers
Method
tx
(value: T)
packages/zod/src/v4/core/checks.ts:1178
↓ 1 callers
Function
typeGuard
(data: string)
packages/zod/src/v4/classic/tests/function.test.ts:278
↓ 1 callers
Function
typeofThenCheckSymbol
(x: any)
packages/bench/instanceof.ts:25
↓ 1 callers
Function
typeofThenCheckTag
(x: any)
packages/bench/instanceof.ts:26
↓ 1 callers
Function
uint8ArrayToBase64
(bytes: Uint8Array)
packages/zod/src/v4/core/util.ts:1083
↓ 1 callers
Function
undeclaredConstraint
A member's constraint on a key it does not declare itself. A `catchall` states one; `false`, an absent `additionalProperties`, and the empty schema a
packages/zod/src/v4/core/to-json-schema.ts:474
↓ 1 callers
Function
unifiedNestedBranch
(value: unknown, direction: "forward" | "backward")
packages/bench/compile-codec-direction.ts:95
↓ 1 callers
Function
unifiedTopLevel
(value: unknown, direction: "forward" | "backward")
packages/bench/compile-codec-direction.ts:91
↓ 1 callers
Function
union
(p: string, branches: number, islands: number)
packages/bench/memory/indent-leak.ts:29
↓ 1 callers
Function
union
( options: T, params?: string | core.$ZodUnionParams )
packages/zod/src/v4/mini/schemas.ts:1138
↓ 1 callers
Method
unrepresentable
@deprecated Access via ctx instead
packages/zod/src/v4/core/json-schema-generator.ts:61
↓ 1 callers
Function
unwrapMessage
(message: string | { message: string } | undefined | null)
packages/zod/src/v4/core/util.ts:933
↓ 1 callers
Function
uriComponent
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:456
↓ 1 callers
Function
utf8ToBytes
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:248
↓ 1 callers
Function
uuid
(version?: number | undefined)
packages/zod/src/v4/core/regexes.ts:32
↓ 1 callers
Function
valid
(schema: T, value: unknown)
packages/zod/src/v4/core/tests/compile.test.ts:29
↓ 1 callers
Function
validateAndBuildLiteral
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:169
↓ 1 callers
Function
validateAndReturn
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:140
↓ 1 callers
Function
validateAsync
(inst: $ZodType, value: unknown)
packages/zod/src/v4/core/schemas.ts:341
↓ 1 callers
Function
validateBuildIndex
(input: unknown[])
packages/bench/compile-array-build.ts:78
↓ 1 callers
Function
validateFallback
( schema: schemas.$ZodType, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue> )
packages/zod/src/v4/core/parse.ts:151
↓ 1 callers
Function
validateNestedObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:31
↓ 1 callers
Function
validateNumberArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:50
↓ 1 callers
Function
validateObjectArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:58
↓ 1 callers
Function
validateOn
(s: z.ZodType)
packages/bench/validate-vs-safeparse.ts:146
↓ 1 callers
Function
validateOpenAPI30Schema
(zodJSONSchema: Record<string, unknown>)
packages/zod/src/v4/classic/tests/to-json-schema.test.ts:8
↓ 1 callers
Function
validateReturnInput
(input: unknown[])
packages/bench/compile-array-build.ts:70
↓ 1 callers
Function
validateSimpleObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:23
↓ 1 callers
Function
validateURL
( trimmed: string, def: Pick<$ZodURLDef, "protocol" | "hostname" | "normalize"> )
packages/zod/src/v4/core/schemas.ts:538
↓ 1 callers
Function
verbFor
(t?: string | null)
packages/zod/src/v4/locales/he.ts:49
↓ 1 callers
Function
visit
(node: ts.Node)
scripts/check-comments.ts:75
↓ 1 callers
Function
wire
(key: string)
packages/zod/src/v4/classic/tests/record.test.ts:439
↓ 1 callers
Method
with
(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[])
packages/zod/src/v4/mini/schemas.ts:16
↓ 1 callers
Function
withChecks
Appends a pipe's own checks to the side that replaces it, mirroring how `.check()` clones.
packages/zod/src/v4/classic/in-out.ts:11
↓ 1 callers
Function
withChecks
See `classic/in-out.ts`.
packages/zod/src/v4/mini/in-out.ts:11
↓ 1 callers
Function
withDefinite
(t?: string | null)
packages/zod/src/v4/locales/he.ts:47
↓ 1 callers
Function
withDefiniteArticle
(word: string | undefined)
packages/zod/src/v4/locales/hy.ts:9
↓ 1 callers
Function
withProps
(n: number)
packages/bench/memory/prop-slack.ts:12
↓ 1 callers
Function
writeStubPackageJsons
* Script to write stub package.json files to directories containing index.d.cts files. * This resolves TypeScript assignability issues by providing e
scripts/write-stub-package-jsons.ts:56
Function
"1 helper + 10 unused constants"
()
packages/bench/compile-helper-scope.ts:98
Function
"1 helper + 50 unused constants"
()
packages/bench/compile-helper-scope.ts:101
Function
"1 scoped helper"
()
packages/bench/compile-helper-scope.ts:95
Function
"=== INVALID"
()
packages/bench/bench-invalid.ts:76
← previous
next →
1,001–1,100 of 2,280, ranked by callers