MCPcopy Create free account

hub / github.com/colinhacks/zod / functions

Functions2,280 in github.com/colinhacks/zod

↓ 1 callersFunctionshape
(z: any)
packages/bench/failing-safeparse.ts:19
↓ 1 callersFunctionshape
(schema: z.ZodType)
packages/zod/src/v4/classic/tests/object.test.ts:798
↓ 1 callersFunctionshape
(sh: object, spread: boolean)
packages/zod/src/v4/core/memoizer.ts:66
↓ 1 callersFunctionshape
(value: unknown)
packages/zod/src/v4/core/tests/compile-generative.test.ts:389
↓ 1 callersFunctionshim
(payload: any, ctx: any)
packages/zod/src/compile.ts:23
↓ 1 callersFunctionskips
(b: z.ZodType, value: unknown = "x")
packages/zod/src/v4/classic/tests/validate.test.ts:426
↓ 1 callersFunctionslope
(label: string, make: (p: string) => unknown, n: number)
packages/bench/memory/compiled-slope.ts:28
↓ 1 callersFunctionsnap
(schema: z.ZodType, value: unknown)
packages/zod/src/v4/core/tests/compile.test.ts:1616
↓ 1 callersFunctionsnapshotNow
(tag: string)
packages/bench/memory/retainers.ts:85
↓ 1 callersFunctionsource
(schema: z.ZodType)
packages/bench/memory/indent-leak.ts:33
↓ 1 callersFunctionsource
()
packages/zod/src/v4/classic/tests/object.test.ts:880
↓ 1 callersFunctionstandardProps
(inst: $ZodType)
packages/zod/src/v4/core/schemas.ts:346
↓ 1 callersFunctionstr
()
packages/zod/src/v3/benchmarks/realworld.ts:29
↓ 1 callersFunctionstrPlain
(input: unknown)
packages/bench/compile-wrapper-cost.ts:31
↓ 1 callersFunctionstrSentinel
(input: unknown)
packages/bench/compile-wrapper-cost.ts:21
↓ 1 callersFunctionstrTagged
(input: unknown)
packages/bench/compile-wrapper-cost.ts:26
↓ 1 callersFunctionstringToBigInt
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:66
↓ 1 callersFunctionstringToBoolean
(options?: { truthy?: string[]; falsy?: string[] })
packages/zod/src/v4/classic/tests/codec-examples.test.ts:489
↓ 1 callersFunctionstringToHttpURL
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:423
↓ 1 callersFunctionstringToInt
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:37
↓ 1 callersFunctionstringToNumber
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:8
↓ 1 callersFunctionstringToURL
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:393
↓ 1 callersFunctionstringifyKeyNames
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 callersFunctionstringifyPrimitive
(value: any)
packages/zod/src/v4/core/util.ts:720
↓ 1 callersFunctionstringifyTitle
(title: any)
packages/docs/app/llms.txt/route.ts:6
↓ 1 callersFunctionstrip
(s: string)
packages/bench/memory/indent-leak.ts:36
↓ 1 callersFunctionstripMdxCommentSegments
(line: string, state: { inComment: boolean })
packages/docs/content/api.test.ts:123
↓ 1 callersFunctionstripMdxComments
(source: string)
packages/docs/content/api.test.ts:100
↓ 1 callersFunctionstripOuter
(schema: TData, data: unknown)
packages/zod/src/v3/tests/generics.test.ts:8
↓ 1 callersFunctionstripOuter
(schema: TData, data: unknown)
packages/zod/src/v4/classic/tests/generics.test.ts:21
↓ 1 callersFunctionstripTabAndNewline
(value: string)
packages/zod/src/v4/core/schemas.ts:573
↓ 1 callersFunctionsync
()
packages/docs/components/blog-toc.tsx:41
↓ 1 callersFunctiontable
(items: Scored[], now: number, opts: { pr?: boolean; base?: boolean } = {})
scripts/triage-signal.ts:443
↓ 1 callersFunctiontag
(value: "a" | "b")
packages/zod/src/v4/classic/tests/discriminated-unions.test.ts:744
↓ 1 callersFunctiontakeSnapshot
(tag: string)
packages/bench/memory/snapshot.ts:41
↓ 1 callersFunctiontally
(rows: NodeRow[])
packages/bench/memory/snapshot.ts:73
↓ 1 callersFunctiontestCjs
()
packages/resolution/test-resolution.ts:36
↓ 1 callersFunctiontestJs
()
packages/resolution/test-resolution.ts:64
↓ 1 callersFunctiontestMjs
()
packages/resolution/test-resolution.ts:50
↓ 1 callersFunctionthrowAsync
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 callersFunctionthrower
(method: string)
scripts/fail-on-console.ts:5
↓ 1 callersFunctiontime
(schema: any)
packages/bench/failing-safeparse.ts:29
↓ 1 callersFunctiontime
(fn: () => unknown, iters: number)
packages/bench/compile-scaling.ts:32
↓ 1 callersFunctiontimeOnce
(fn: () => void, ms: number)
packages/bench/memory/throughput.ts:8
↓ 1 callersFunctiontimeRegex
(args: { offset?: boolean; local?: boolean; precision?: number | null; })
packages/zod/src/v3/types.ts:664
↓ 1 callersFunctiontimed
(fn: () => void, iters: number)
packages/bench/validate-abort-sweep.ts:127
↓ 1 callersFunctiontimed
(fn: () => void, iters: number)
packages/bench/validate-vs-safeparse.ts:107
↓ 1 callersFunctiontitleTokens
(title: string)
scripts/triage-signal.ts:372
↓ 1 callersFunctiontoB64Url
(b64: string)
packages/zod/src/v4/classic/tests/hash.test.ts:10
↓ 1 callersFunctiontoDotPath
(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[])
packages/zod/src/v4/core/errors.ts:514
↓ 1 callersFunctiontoFixed
(val: number)
packages/bench/benchUtil.ts:69
↓ 1 callersFunctiontrackedFiles
()
scripts/check-comments.ts:108
↓ 1 callersFunctiontranslateOriginWithArticle
( type: $ZodInvalidTypeExpected | (string & {}), articleType: "definite" | "indefinite" )
packages/zod/src/v4/locales/pt-BR.ts:89
↓ 1 callersFunctiontranslateOriginWithArticle
( type: $ZodInvalidTypeExpected | (string & {}), articleType: "definite" | "indefinite" )
packages/zod/src/v4/locales/pt.ts:89
↓ 1 callersFunctiontuple
( items: core.SomeType[], _paramsOrRest?: string | core.$ZodTupleParams | core.SomeType, _params?: strin
packages/zod/src/v4/classic/schemas.ts:1933
↓ 1 callersFunctiontuple
( items: SomeType[], _paramsOrRest?: string | core.$ZodTupleParams | SomeType, _params?: string | core.$
packages/zod/src/v4/mini/schemas.ts:1254
↓ 1 callersFunctiontwins
(a: Releases, b: Releases)
scripts/check-lockstep.ts:31
↓ 1 callersMethodtx
(value: T)
packages/zod/src/v4/core/checks.ts:1178
↓ 1 callersFunctiontypeGuard
(data: string)
packages/zod/src/v4/classic/tests/function.test.ts:278
↓ 1 callersFunctiontypeofThenCheckSymbol
(x: any)
packages/bench/instanceof.ts:25
↓ 1 callersFunctiontypeofThenCheckTag
(x: any)
packages/bench/instanceof.ts:26
↓ 1 callersFunctionuint8ArrayToBase64
(bytes: Uint8Array)
packages/zod/src/v4/core/util.ts:1083
↓ 1 callersFunctionundeclaredConstraint
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 callersFunctionunifiedNestedBranch
(value: unknown, direction: "forward" | "backward")
packages/bench/compile-codec-direction.ts:95
↓ 1 callersFunctionunifiedTopLevel
(value: unknown, direction: "forward" | "backward")
packages/bench/compile-codec-direction.ts:91
↓ 1 callersFunctionunion
(p: string, branches: number, islands: number)
packages/bench/memory/indent-leak.ts:29
↓ 1 callersFunctionunion
( options: T, params?: string | core.$ZodUnionParams )
packages/zod/src/v4/mini/schemas.ts:1138
↓ 1 callersMethodunrepresentable
@deprecated Access via ctx instead
packages/zod/src/v4/core/json-schema-generator.ts:61
↓ 1 callersFunctionunwrapMessage
(message: string | { message: string } | undefined | null)
packages/zod/src/v4/core/util.ts:933
↓ 1 callersFunctionuriComponent
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:456
↓ 1 callersFunctionutf8ToBytes
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:248
↓ 1 callersFunctionuuid
(version?: number | undefined)
packages/zod/src/v4/core/regexes.ts:32
↓ 1 callersFunctionvalid
(schema: T, value: unknown)
packages/zod/src/v4/core/tests/compile.test.ts:29
↓ 1 callersFunctionvalidateAndBuildLiteral
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:169
↓ 1 callersFunctionvalidateAndReturn
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:140
↓ 1 callersFunctionvalidateAsync
(inst: $ZodType, value: unknown)
packages/zod/src/v4/core/schemas.ts:341
↓ 1 callersFunctionvalidateBuildIndex
(input: unknown[])
packages/bench/compile-array-build.ts:78
↓ 1 callersFunctionvalidateFallback
( schema: schemas.$ZodType, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue> )
packages/zod/src/v4/core/parse.ts:151
↓ 1 callersFunctionvalidateNestedObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:31
↓ 1 callersFunctionvalidateNumberArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:50
↓ 1 callersFunctionvalidateObjectArray
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:58
↓ 1 callersFunctionvalidateOn
(s: z.ZodType)
packages/bench/validate-vs-safeparse.ts:146
↓ 1 callersFunctionvalidateOpenAPI30Schema
(zodJSONSchema: Record<string, unknown>)
packages/zod/src/v4/classic/tests/to-json-schema.test.ts:8
↓ 1 callersFunctionvalidateReturnInput
(input: unknown[])
packages/bench/compile-array-build.ts:70
↓ 1 callersFunctionvalidateSimpleObject
(input: unknown)
packages/bench/compile-validate-vs-parse.ts:23
↓ 1 callersFunctionvalidateURL
( trimmed: string, def: Pick<$ZodURLDef, "protocol" | "hostname" | "normalize"> )
packages/zod/src/v4/core/schemas.ts:538
↓ 1 callersFunctionverbFor
(t?: string | null)
packages/zod/src/v4/locales/he.ts:49
↓ 1 callersFunctionvisit
(node: ts.Node)
scripts/check-comments.ts:75
↓ 1 callersFunctionwire
(key: string)
packages/zod/src/v4/classic/tests/record.test.ts:439
↓ 1 callersMethodwith
(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[])
packages/zod/src/v4/mini/schemas.ts:16
↓ 1 callersFunctionwithChecks
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 callersFunctionwithChecks
See `classic/in-out.ts`.
packages/zod/src/v4/mini/in-out.ts:11
↓ 1 callersFunctionwithDefinite
(t?: string | null)
packages/zod/src/v4/locales/he.ts:47
↓ 1 callersFunctionwithDefiniteArticle
(word: string | undefined)
packages/zod/src/v4/locales/hy.ts:9
↓ 1 callersFunctionwithProps
(n: number)
packages/bench/memory/prop-slack.ts:12
↓ 1 callersFunctionwriteStubPackageJsons
* 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
← previousnext →1,001–1,100 of 2,280, ranked by callers