Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colinhacks/zod
/ functions
Functions
2,263 in github.com/colinhacks/zod
⨍
Functions
2,263
◇
Types & classes
877
↓ 3 callers
Function
f
()
packages/zod/src/v3/tests/primitive.test.ts:43
↓ 3 callers
Method
finite
@deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op.
packages/zod/src/v4/classic/schemas.ts:1128
↓ 3 callers
Method
flatten
@deprecated Use the `z.treeifyError(err)` function instead.
packages/zod/src/v4/classic/errors.ts:14
↓ 3 callers
Method
format
@deprecated Use the `z.treeifyError(err)` function instead.
packages/zod/src/v4/classic/errors.ts:11
↓ 3 callers
Function
formatDate
(value: string | Date, style: "short" | "long" = "short")
packages/docs/loaders/source.ts:43
↓ 3 callers
Function
forwardBranchless
(value: unknown)
packages/bench/compile-codec-direction.ts:74
↓ 3 callers
Function
getErrorMap
()
packages/zod/src/v3/errors.ts:11
↓ 3 callers
Method
guid
@deprecated Use `z.guid()` instead.
packages/zod/src/v4/classic/schemas.ts:463
↓ 3 callers
Function
heapUsed
()
packages/bench/memory/harness.ts:16
↓ 3 callers
Method
implementAsync
( func: F )
packages/zod/src/v4/core/schemas.ts:4832
↓ 3 callers
Function
inputOptin
(schema: schemas.$ZodType)
packages/zod/src/v4/core/json-schema-processors.ts:411
↓ 3 callers
Function
int
(c: Ctx, lo: number, hi: number)
packages/zod/src/v4/core/tests/compile-generative.test.ts:39
↓ 3 callers
Function
isHidden
(page: any)
packages/docs/app/blog/[slug]/page.tsx:17
↓ 3 callers
Function
make
(p: string)
packages/bench/memory/indent-leak.ts:79
↓ 3 callers
Function
makeIssue
(params: { data: any; path: (string | number)[]; errorMaps: ZodErrorMap[]; issueData: IssueData; })
packages/zod/src/v3/helpers/parseUtil.ts:6
↓ 3 callers
Function
measureStable
(label: string, count: number, factory: (i: number) => unknown, runs = 5)
packages/bench/memory/harness.ts:55
↓ 3 callers
Method
mergeObjectSync
( status: ParseStatus, pairs: { key: SyncParseReturnType<any>; value: SyncParseReturnType<
packages/zod/src/v3/helpers/parseUtil.ts:128
↓ 3 callers
Method
mime
(types: util.MimeTypes | Array<util.MimeTypes>, params?: string | core.$ZodCheckMimeTypeParams)
packages/zod/src/v4/classic/schemas.ts:2222
↓ 3 callers
Function
nestedSentinel
(input: any)
packages/bench/compile-wrapper-cost.ts:104
↓ 3 callers
Method
normalize
(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {}))
packages/zod/src/v4/classic/schemas.ts:380
↓ 3 callers
Method
output
(output: NewReturns)
packages/zod/src/v4/classic/schemas.ts:2733
↓ 3 callers
Function
own
(inst: object, key: PropertyKey, value: T, enumerable = true)
packages/zod/src/v4/core/util.ts:1131
↓ 3 callers
Function
parseAsync
(data, params)
packages/zod/src/v4/mini/schemas.ts:65
↓ 3 callers
Function
parsedType
(data: unknown)
packages/zod/src/v4/core/util.ts:1011
↓ 3 callers
Function
pick
(c: Ctx, xs: readonly T[])
packages/zod/src/v4/core/tests/compile-generative.test.ts:38
↓ 3 callers
Method
properties
( shape: Shape, params?: string | core.$ZodCheckPropertiesParams )
packages/zod/src/v4/classic/schemas.ts:2839
↓ 3 callers
Function
randomStr
(length: number)
packages/tsc/generate.ts:316
↓ 3 callers
Method
remove
(schema: Schema)
packages/zod/src/v4/core/registries.ts:51
↓ 3 callers
Method
safeDecodeAsync
( data: core.input<this>, params?: core.ParseContext<core.$ZodIssue> )
packages/zod/src/v4/classic/schemas.ts:101
↓ 3 callers
Method
safeEncodeAsync
( data: core.output<this>, params?: core.ParseContext<core.$ZodIssue> )
packages/zod/src/v4/classic/schemas.ts:97
↓ 3 callers
Method
shape
()
packages/zod/src/v3/types.ts:2570
↓ 3 callers
Method
size
(size: number, params?: string | core.$ZodCheckSizeEqualsParams)
packages/zod/src/v4/classic/schemas.ts:2024
↓ 3 callers
Method
slugify
()
packages/zod/src/v4/classic/schemas.ts:383
↓ 3 callers
Function
transform
(tx)
packages/zod/src/v4/classic/schemas.ts:244
↓ 3 callers
Function
validateInput
(value: any)
packages/bench/compile-codec-direction.ts:50
↓ 3 callers
Function
wrap
(c: Ctx, inner: Gen)
packages/zod/src/v4/core/tests/compile-generative.test.ts:128
↓ 2 callers
Function
DIRTY
(value: T)
packages/zod/src/v3/helpers/parseUtil.ts:163
↓ 2 callers
Function
Geometry
()
packages/zod/src/v4/classic/tests/cyclic-data.test.ts:741
↓ 2 callers
Function
addDivisor
(agg: CheckAggregate, value: number)
packages/zod/src/v4/core/json-schema-processors.ts:54
↓ 2 callers
Method
addIssues
@deprecated Push directly to `.issues` instead.
packages/zod/src/v4/classic/errors.ts:19
↓ 2 callers
Function
addPattern
(agg: CheckAggregate, pattern: RegExp)
packages/zod/src/v4/core/json-schema-processors.ts:58
↓ 2 callers
Method
args
( ...items: Items )
packages/zod/src/v3/types.ts:3912
↓ 2 callers
Function
array
()
packages/zod/src/v4/classic/schemas.ts:235
↓ 2 callers
Function
array
(element: SomeType, params?: any)
packages/zod/src/v4/mini/schemas.ts:881
↓ 2 callers
Function
base
(is_async?: boolean)
packages/zod/src/v4/classic/tests/async-parsing.test.ts:330
↓ 2 callers
Function
body
(schema: z.ZodType, params?: Parameters<typeof z.toJSONSchema>[1])
packages/zod/src/v4/classic/tests/to-json-schema.test.ts:4363
↓ 2 callers
Method
brand
( value?: T )
packages/zod/src/v4/mini/schemas.ts:25
↓ 2 callers
Method
check
(payload: schemas.ParsePayload<T>)
packages/zod/src/v4/core/checks.ts:24
↓ 2 callers
Function
checker
()
packages/zod/src/v3/tests/tuple.test.ts:31
↓ 2 callers
Method
clear
()
packages/zod/src/v4/core/registries.ts:45
↓ 2 callers
Function
collect
(ranges: ts.CommentRange[] | undefined)
scripts/check-comments.ts:70
↓ 2 callers
Function
comparisonOperand
(ctx: CompileContext, value: number | bigint | Date)
packages/zod/src/v4/core/compile.ts:500
↓ 2 callers
Function
createStandardJSONSchemaMethod
(schema: T, io: "input" | "output", processors: Record<string, Processor> = {})
packages/zod/src/v4/core/to-json-schema.ts:850
↓ 2 callers
Method
deepPartial
* @deprecated
packages/zod/src/v3/types.ts:2809
↓ 2 callers
Function
deferProp
(target: object, key: PropertyKey, getter: () => any)
packages/zod/src/v4/core/util.ts:402
↓ 2 callers
Function
describe
(description: string)
packages/zod/src/v3/types.ts:514
↓ 2 callers
Function
discriminatorMap
(def: $ZodDiscriminatedUnionDef<readonly SomeType[]>)
packages/zod/src/v4/core/schemas.ts:2643
↓ 2 callers
Function
dropsWhenAbsent
The middle rung permits absence without supplying anything in its place, so an absent key contributes nothing — mirrors the leading gate in `handlePro
packages/zod/src/v4/core/compile.ts:1453
↓ 2 callers
Function
endsWithNative
(s: string)
packages/bench/compile-endswith.ts:11
↓ 2 callers
Function
endsWithRegex
(s: string)
packages/bench/compile-endswith.ts:15
↓ 2 callers
Function
endsWithSlice
(s: string)
packages/bench/compile-endswith.ts:21
↓ 2 callers
Function
endsWithSubstring
(s: string)
packages/bench/compile-endswith.ts:24
↓ 2 callers
Function
esc
(s: string)
scripts/triage-signal.ts:439
↓ 2 callers
Method
exactPartial
()
packages/zod/src/v4/classic/schemas.ts:1637
↓ 2 callers
Method
exclude
( values: U, params?: string | core.$ZodEnumParams )
packages/zod/src/v4/classic/schemas.ts:2099
↓ 2 callers
Function
extended
(schema: schemas.$ZodObject, shape: schemas.$ZodShape)
packages/zod/src/v4/core/util.ts:824
↓ 2 callers
Method
extract
( values: U, params?: string | core.$ZodEnumParams )
packages/zod/src/v4/classic/schemas.ts:2095
↓ 2 callers
Function
failure
(Err: $ZodErrorClass, issues: errors.$ZodRawIssue[], ctx: schemas.ParseContextInternal)
packages/zod/src/v4/core/parse.ts:83
↓ 2 callers
Function
fetchStars
(resources: { slug: string; stars?: number }[])
packages/docs/loaders/stars.ts:36
↓ 2 callers
Function
formatNumber
(val: number)
packages/bench/benchUtil.ts:38
↓ 2 callers
Function
gen
(c: Ctx, depth: number)
packages/zod/src/v4/core/tests/compile-generative.test.ts:366
↓ 2 callers
Function
generateFields
( params: Pick<GenerateObjectsParams, "numKeys" | "valueTypes" | "methods"> )
packages/tsc/generate.ts:327
↓ 2 callers
Function
generateNumberFormatCheck
(doc: Doc, def: checks.$ZodCheckNumberFormatDef, accessor: string)
packages/zod/src/v4/core/compile.ts:555
↓ 2 callers
Function
generateStringFormatCheck
(doc: Doc, ctx: CompileContext, def: StringFormatDef, accessor: string)
packages/zod/src/v4/core/compile.ts:775
↓ 2 callers
Function
getLLMText
(page: InferPageType<typeof source>)
packages/docs/loaders/get-llm-text.ts:14
↓ 2 callers
Function
handlePropertyResult
( result: ParsePayload, final: ParsePayload, key: PropertyKey, input: any, optin: "optional" | "defa
packages/zod/src/v4/core/schemas.ts:1950
↓ 2 callers
Function
handleResult
( ctx: ParseContext, result: SyncParseReturnType<Output> )
packages/zod/src/v3/types.ts:87
↓ 2 callers
Function
handwrittenNested
(input: unknown)
packages/bench/compile-vs-arktype.ts:268
↓ 2 callers
Function
handwrittenSimple
(input: unknown)
packages/bench/compile-vs-arktype.ts:260
↓ 2 callers
Function
hide
(target: Record<string, any>)
packages/zod/src/v4/classic/tests/object.test.ts:877
↓ 2 callers
Function
includesIndexOf
(s: string)
packages/bench/compile-includes.ts:21
↓ 2 callers
Function
includesNative
(s: string)
packages/bench/compile-includes.ts:11
↓ 2 callers
Function
includesRegex
(s: string)
packages/bench/compile-includes.ts:15
↓ 2 callers
Method
innerType
()
packages/zod/src/v3/types.ts:4312
↓ 2 callers
Method
input
( args: Items, rest?: Rest )
packages/zod/src/v4/mini/schemas.ts:1992
↓ 2 callers
Function
intersectMime
(agg: CheckAggregate, mime: string[])
packages/zod/src/v4/core/json-schema-processors.ts:62
↓ 2 callers
Function
isAborted
(x: ParseReturnType<any>)
packages/zod/src/v3/helpers/parseUtil.ts:172
↓ 2 callers
Function
isBackEdge
(ctx: object, value: unknown)
packages/zod/src/v4/core/memoizer.ts:328
↓ 2 callers
Function
isDirty
(x: ParseReturnType<T>)
packages/zod/src/v3/helpers/parseUtil.ts:173
↓ 2 callers
Function
isObject
(data: any)
packages/zod/src/v4/core/util.ts:513
↓ 2 callers
Function
isRecursiveSchema
(inst: $ZodType)
packages/zod/src/v4/core/memoizer.ts:195
↓ 2 callers
Function
isRef
(value: unknown)
packages/zod/src/v4/core/memoizer.ts:32
↓ 2 callers
Function
isValidBase64URL
(data: string)
packages/zod/src/v4/core/schemas.ts:1048
↓ 2 callers
Function
isValidIPv6
(value: string)
packages/zod/src/v4/core/schemas.ts:886
↓ 2 callers
Function
isValidJWT
(token: string, algorithm: util.JWTAlgorithm | null = null)
packages/zod/src/v4/core/schemas.ts:1195
↓ 2 callers
Function
key
(r: NodeRow)
packages/bench/memory/snapshot.ts:69
↓ 2 callers
Function
keyExpr
(k: string | symbol)
packages/zod/src/v4/core/compile.ts:1188
↓ 2 callers
Function
latestPosts
(count: number)
packages/docs/loaders/source.ts:30
↓ 2 callers
Function
link
(i: Scored)
scripts/triage-signal.ts:435
↓ 2 callers
Function
measure
(label: string, count: number, factory: (i: number) => unknown)
packages/bench/memory/harness.ts:32
← previous
next →
201–300 of 2,263, ranked by callers