Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colinhacks/zod
/ functions
Functions
2,104 in github.com/colinhacks/zod
⨍
Functions
2,104
◇
Types & classes
849
↓ 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:2177
↓ 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:375
↓ 3 callers
Method
output
(output: NewReturns)
packages/zod/src/v4/classic/schemas.ts:2688
↓ 3 callers
Function
own
(inst: object, key: string, value: T, enumerable = true)
packages/zod/src/v4/core/util.ts:1082
↓ 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:962
↓ 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:99
↓ 3 callers
Method
safeEncodeAsync
( data: core.output<this>, params?: core.ParseContext<core.$ZodIssue> )
packages/zod/src/v4/classic/schemas.ts:95
↓ 3 callers
Function
safeParse
(data, params)
packages/zod/src/v4/classic/schemas.ts:300
↓ 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:1980
↓ 3 callers
Method
slugify
()
packages/zod/src/v4/classic/schemas.ts:378
↓ 3 callers
Function
validateInput
(value: any)
packages/bench/compile-codec-direction.ts:50
↓ 2 callers
Function
DIRTY
(value: T)
packages/zod/src/v3/helpers/parseUtil.ts:163
↓ 2 callers
Method
addIssue
(arg: string | $ZodSuperRefineIssue)
packages/zod/src/v4/core/api.ts:1683
↓ 2 callers
Method
addIssues
@deprecated Push directly to `.issues` instead.
packages/zod/src/v4/classic/errors.ts:19
↓ 2 callers
Method
args
( ...items: Items )
packages/zod/src/v3/types.ts:3912
↓ 2 callers
Function
array
()
packages/zod/src/v4/classic/schemas.ts:233
↓ 2 callers
Function
array
(element: SomeType, params?: any)
packages/zod/src/v4/mini/schemas.ts:866
↓ 2 callers
Function
base
(is_async?: boolean)
packages/zod/src/v4/classic/tests/async-parsing.test.ts:330
↓ 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
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:461
↓ 2 callers
Function
createStandardJSONSchemaMethod
(schema: T, io: "input" | "output", processors: Record<string, Processor> = {})
packages/zod/src/v4/core/to-json-schema.ts:843
↓ 2 callers
Method
deepPartial
* @deprecated
packages/zod/src/v3/types.ts:2809
↓ 2 callers
Function
describe
(description: string)
packages/zod/src/v3/types.ts:514
↓ 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:1385
↓ 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:1594
↓ 2 callers
Method
exclude
( values: U, params?: string | core.$ZodEnumParams )
packages/zod/src/v4/classic/schemas.ts:2055
↓ 2 callers
Method
extract
( values: U, params?: string | core.$ZodEnumParams )
packages/zod/src/v4/classic/schemas.ts:2051
↓ 2 callers
Function
formatNumber
(val: number)
packages/bench/benchUtil.ts:36
↓ 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:516
↓ 2 callers
Function
generateStringFormatCheck
(doc: Doc, ctx: CompileContext, def: StringFormatDef, accessor: string)
packages/zod/src/v4/core/compile.ts:712
↓ 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:1901
↓ 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
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:1975
↓ 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:205
↓ 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:400
↓ 2 callers
Function
isValidBase64URL
(data: string)
packages/zod/src/v4/core/schemas.ts:1047
↓ 2 callers
Function
isValidIPv6
(value: string)
packages/zod/src/v4/core/schemas.ts:885
↓ 2 callers
Function
isValidJWT
(token: string, algorithm: util.JWTAlgorithm | null = null)
packages/zod/src/v4/core/schemas.ts:1149
↓ 2 callers
Function
keyExpr
(k: string | symbol)
packages/zod/src/v4/core/compile.ts:1120
↓ 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
↓ 2 callers
Function
mediumReturnInput
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:76
↓ 2 callers
Method
mergeArray
(status: ParseStatus, results: SyncParseReturnType<any>[])
packages/zod/src/v3/helpers/parseUtil.ts:101
↓ 2 callers
Method
min
(minSize: number, message?: errorUtil.ErrMessage)
packages/zod/src/v3/types.ts:3757
↓ 2 callers
Function
multiBuildNew
(input: Record<string, unknown>)
packages/bench/compile-output.ts:246
↓ 2 callers
Function
multiMutate
(input: Record<string, unknown>)
packages/bench/compile-output.ts:239
↓ 2 callers
Function
nestedClonePath
(input: NestedData)
packages/bench/compile-output.ts:182
↓ 2 callers
Function
nestedMutate
(input: NestedData)
packages/bench/compile-output.ts:177
↓ 2 callers
Function
never
(params?: string | core.$ZodNeverParams)
packages/zod/src/v4/classic/schemas.ts:1420
↓ 2 callers
Function
numericOperand
* A count bound reaches generated source verbatim, so a non-number would be * emitted as code rather than as a value — `min('0) {} evil(); if (0')` w
packages/zod/src/v4/core/compile.ts:454
↓ 2 callers
Function
outSide
The out side, carrying the pipe's own checks: those run against the decoded value, which is what `out` produces.
packages/zod/src/v4/classic/in-out.ts:18
↓ 2 callers
Function
outSide
See `classic/in-out.ts`.
packages/zod/src/v4/mini/in-out.ts:18
↓ 2 callers
Method
output
(output: NewReturns)
packages/zod/src/v4/mini/schemas.ts:1982
↓ 2 callers
Function
pick
(xs: T[])
packages/zod/src/v4/core/tests/compile-differential.test.ts:768
↓ 2 callers
Function
pick
(xs: T[])
scripts/compile-fuzz.ts:17
↓ 2 callers
Function
printAvailableCases
()
packages/bench/compile-vs-arktype.ts:36
↓ 2 callers
Method
process
* Process a schema to prepare it for JSON Schema generation. * This must be called before emit().
packages/zod/src/v4/core/json-schema-generator.ts:104
↓ 2 callers
Function
randomPick
(options: any[])
packages/bench/benchUtil.ts:23
↓ 2 callers
Method
removeDefault
@deprecated Use `.unwrap()` instead.
packages/zod/src/v4/classic/schemas.ts:2337
↓ 2 callers
Function
run
()
packages/bench/index.ts:5
↓ 2 callers
Function
run
(s: AnyZod)
packages/zod/src/v4/core/visit.ts:42
↓ 2 callers
Function
runChecks
( payload: ParsePayload, checks: checks.$ZodCheck<never>[], ctx?: ParseContextInternal
packages/zod/src/v4/core/schemas.ts:231
↓ 2 callers
Method
safe
@deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted.
packages/zod/src/v4/classic/schemas.ts:1098
↓ 2 callers
Method
safeParseAsync
( data: unknown, params?: core.ParseContext<core.$ZodIssue> )
packages/zod/src/v4/mini/schemas.ts:34
↓ 2 callers
Function
serializeDefaultValue
( value: unknown, schema: schemas.$ZodType, ctx: ToJSONSchemaContext, json: JSONSchema.BaseSchema, p
packages/zod/src/v4/core/json-schema-processors.ts:550
↓ 2 callers
Function
smallBuildNew
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:22
↓ 2 callers
Function
smallReturnInput
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:14
↓ 2 callers
Function
smallSpread
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:34
↓ 2 callers
Function
startsWithIndex
(s: string)
packages/bench/compile-startswith.ts:27
↓ 2 callers
Function
startsWithNative
(s: string)
packages/bench/compile-startswith.ts:11
↓ 2 callers
Function
startsWithRegex
(s: string)
packages/bench/compile-startswith.ts:15
↓ 2 callers
Function
startsWithSlice
(s: string)
packages/bench/compile-startswith.ts:21
↓ 2 callers
Function
startsWithSubstring
(s: string)
packages/bench/compile-startswith.ts:24
↓ 2 callers
Method
step
@deprecated Use `.multipleOf()` instead.
packages/zod/src/v4/classic/schemas.ts:1105
↓ 2 callers
Function
string
(params?: string | core.$ZodStringParams)
packages/zod/src/v4/classic/schemas.ts:611
← previous
next →
201–300 of 2,104, ranked by callers