MCPcopy Create free account

hub / github.com/colinhacks/zod / functions

Functions2,258 in github.com/colinhacks/zod

↓ 1 callersFunction_null
(params?: string | core.$ZodNullParams)
packages/zod/src/v4/classic/schemas.ts:1414
↓ 1 callersFunction_null
(params?: string | core.$ZodNullParams)
packages/zod/src/v4/mini/schemas.ts:776
↓ 1 callersFunction_safeDecode
(_Err)
packages/zod/src/v4/core/parse.ts:280
↓ 1 callersFunction_safeDecodeAsync
(_Err)
packages/zod/src/v4/core/parse.ts:305
↓ 1 callersFunction_safeEncode
(_Err)
packages/zod/src/v4/core/parse.ts:267
↓ 1 callersFunction_safeEncodeAsync
(_Err)
packages/zod/src/v4/core/parse.ts:292
↓ 1 callersMethodabort
()
packages/zod/src/v3/helpers/parseUtil.ts:97
↓ 1 callersFunctionacceptSchema
(schema: StandardSchemaWithJSON)
packages/zod/src/v4/mini/tests/standard-schema.test.ts:5
↓ 1 callersFunctionadd
(name: string, category: Category, run: (input: unknown) => unknown)
packages/bench/moltar-libs.ts:46
↓ 1 callersFunctionadd
(group: string, name: string, schema: z.ZodType, valid: unknown, invalid: unknown)
packages/bench/validate-abort-sweep.ts:18
↓ 1 callersFunctionadd
(group: string, name: string, schema: z.ZodType, input: unknown)
packages/bench/compile-matrix.ts:17
↓ 1 callersFunctionago
(iso: string, now: number)
scripts/triage-signal.ts:427
↓ 1 callersFunctionallOf
(schema: z.ZodType, params?: Parameters<typeof z.toJSONSchema>[1])
packages/zod/src/v4/classic/tests/to-json-schema.test.ts:4586
↓ 1 callersFunctionallPatterns
Every pattern `core/regexes.ts` ships, with the parameterized ones materialized across their argument space.
packages/zod/src/v4/classic/tests/redos.test.ts:8
↓ 1 callersMethodalloc
(inst: $ZodType, payload: ParsePayload, empty: T, ctx: ParseContextInternal)
packages/zod/src/v4/core/schemas.ts:41
↓ 1 callersFunctionanchor
Anchors a pattern source. The interpolation lives here rather than at the call site because * esbuild will not drop a `@__PURE__` call whose own argu
packages/zod/src/v4/core/regexes.ts:109
↓ 1 callersFunctionapply
(fn: any, ...args: any[])
packages/zod/src/v4/mini/schemas.ts:99
↓ 1 callersMethodapply
(fn: (schema: this, ...args: TArgs) => T, ...args: TArgs)
packages/zod/src/v4/mini/schemas.ts:38
↓ 1 callersFunctionapplyMinItems
(items: ZodType[], minItems: number)
packages/zod/src/v4/classic/from-json-schema.ts:123
↓ 1 callersFunctionarray
(fn: () => T)
packages/zod/src/v3/benchmarks/realworld.ts:33
↓ 1 callersFunctionarrayBuildIndex
(input: T[])
packages/bench/compile-array-build.ts:24
↓ 1 callersFunctionarrayReturnInput
(input: T[])
packages/bench/compile-array-build.ts:20
↓ 1 callersFunctionarraySlice
(input: T[])
packages/bench/compile-array-build.ts:32
↓ 1 callersMethodassert
(value: unknown)
packages/zod/src/v3/ZodError.ts:281
↓ 1 callersFunctionassertExpectedTabLabels
(block: TabsBlock, failures: string[])
packages/docs/content/api.test.ts:182
↓ 1 callersFunctionassertIdentical
(actual: unknown, expected: unknown, path: string)
packages/zod/src/v4/core/tests/compile-differential.test.ts:16
↓ 1 callersFunctionassertUnionSound
(schema: z.ZodType, inputs: unknown[])
packages/zod/src/v4/core/tests/compile-differential.test.ts:120
↓ 1 callersMethodattach
(inst: $ZodType)
packages/zod/src/v4/core/schemas.ts:39
↓ 1 callersFunctionattempt
(fn: () => T)
packages/zod/src/v4/core/tests/compile-generative.test.ts:374
↓ 1 callersFunctionb
()
packages/zod/src/v4/classic/tests/cyclic-data.test.ts:26
↓ 1 callersFunctionbase
(is_async?: boolean)
packages/zod/src/v3/tests/async-parsing.test.ts:343
↓ 1 callersFunctionbase64
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:305
↓ 1 callersFunctionbase64ToUint8Array
(base64: string)
packages/zod/src/v4/core/util.ts:1061
↓ 1 callersFunctionbase64urlToBytes
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:333
↓ 1 callersFunctionbench
(label: string, fn: () => void)
packages/bench/memory/throughput.ts:21
↓ 1 callersFunctionbenchWithData
(params: BenchWithDataParams<D> & ThisType<{ data: D }>)
packages/bench/metabench.ts:36
↓ 1 callersFunctionboolean
(params?: string | core.$ZodBooleanParams)
packages/zod/src/v4/classic/schemas.ts:1272
↓ 1 callersFunctionboolean
(params?: string | core.$ZodBooleanParams)
packages/zod/src/v4/mini/schemas.ts:676
↓ 1 callersFunctionbranch
(p: string, i: number, islands: number)
packages/bench/memory/indent-leak.ts:23
↓ 1 callersFunctionbranded
(_: a)
packages/zod/src/v4/classic/tests/index.test.ts:795
↓ 1 callersFunctionbranded
(_: a)
packages/zod/src/v4/mini/tests/index.test.ts:851
↓ 1 callersFunctionbucketFor
(state: State, inst: $ZodType)
packages/zod/src/v4/core/memoizer.ts:203
↓ 1 callersFunctionbuildAssign
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:108
↓ 1 callersFunctionbuildIncremental
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:72
↓ 1 callersFunctionbuildLiteral
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:41
↓ 1 callersFunctionbuildReport
(all: Scored[], args: Args, now: number, advisories: Advisory[])
scripts/triage-signal.ts:475
↓ 1 callersFunctionbuildSpread
(input: Record<string, unknown>)
packages/bench/compile-object-build.ts:103
↓ 1 callersFunctionbuildTsc
()
packages/resolution/test-resolution.ts:22
↓ 1 callersFunctionbuildZshy
()
packages/resolution/test-resolution.ts:8
↓ 1 callersFunctionbundle
(fixture: string)
packages/treeshake/bundle-size.test.ts:76
↓ 1 callersFunctionbundle
(code: string)
packages/treeshake/locale-treeshake.test.ts:43
↓ 1 callersFunctionbundle
(entrypoint: string, source: string)
packages/zod/src/v4/core/tests/treeshake.test.ts:14
↓ 1 callersFunctionbundleAndRun
(code: string)
packages/treeshake/default-locale.test.ts:53
↓ 1 callersFunctionbytesToUtf8
()
packages/zod/src/v4/classic/tests/codec-examples.test.ts:276
↓ 1 callersFunctioncached
(getter: () => T)
packages/zod/src/v4/core/util.ts:313
↓ 1 callersFunctioncalibrate
iterations that put one measurement near ~40ms, so a round is short but not noise
packages/bench/moltar-libs.ts:229
↓ 1 callersFunctioncalibrate
(fn: () => void)
packages/bench/validate-abort-sweep.ts:134
↓ 1 callersFunctioncalibrate
Iterations that put one measurement near ~40ms, so a round is short but not noise.
packages/bench/compile-matrix.ts:253
↓ 1 callersFunctioncallSite
()
packages/zod/src/v4/classic/tests/error.test.ts:913
↓ 1 callersFunctioncallSite
()
packages/zod/src/v4/core/tests/compile.test.ts:1599
↓ 1 callersFunctioncallSite
()
packages/zod/src/v4/mini/tests/error.test.ts:27
↓ 1 callersFunctioncallback
(predicate: (val: string) => boolean)
packages/zod/src/v3/tests/base.test.ts:23
↓ 1 callersFunctioncanonicalKey
* An injective string for JSON data: two values share a key exactly when `uniqueItems` calls them * equal, so duplicate detection is a Map lookup rat
packages/zod/src/v4/classic/from-json-schema.ts:223
↓ 1 callersFunctioncapitalizeFirstCharacter
(text: string)
packages/zod/src/v4/locales/lt.ts:5
↓ 1 callersFunctioncapture
(key: string)
packages/zod/src/v4/classic/tests/issue-schema.test.ts:170
↓ 1 callersFunctioncaptureMeta
Collects the owning schema's registered metadata for every issue an error map sees.
packages/zod/src/v4/classic/tests/issue-schema.test.ts:12
↓ 1 callersFunctioncensus
(a: any, b: any)
packages/bench/memory/survey.ts:13
↓ 1 callersFunctionchance
(p: number)
scripts/compile-fuzz.ts:18
↓ 1 callersFunctioncheck
(child: any)
packages/zod/src/v4/core/memoizer.ts:58
↓ 1 callersFunctioncheckArrayGuards
* Enforces `uniqueItems` and the `contains` family before `arraySchema` runs, for the same reason * `checkObjectGuards` runs pre-pipe: an item parse
packages/zod/src/v4/classic/from-json-schema.ts:313
↓ 1 callersFunctioncheckErrors
(a: z.ZodTypeAny, bad: any)
packages/zod/src/v3/tests/optional.test.ts:6
↓ 1 callersFunctioncheckErrors
(a: z.ZodTypeAny, bad: any)
packages/zod/src/v3/tests/nullable.test.ts:6
↓ 1 callersFunctioncheckObjectGuards
* Enforces the keywords that constrain an object's own keys — `propertyNames`, * `minProperties`, `maxProperties` — before `objectSchema` runs. The g
packages/zod/src/v4/classic/from-json-schema.ts:164
↓ 1 callersFunctioncheckSeed
(seed: number)
packages/zod/src/v4/core/tests/compile-generative.test.ts:412
↓ 1 callersFunctionchecker
()
packages/zod/src/v3/tests/function.test.ts:104
↓ 1 callersFunctionchecker
()
packages/zod/src/v4/classic/tests/function.test.ts:181
↓ 1 callersFunctionchild
()
packages/zod/src/v4/core/tests/compile-generative.test.ts:170
↓ 1 callersMethodcidr
(options?: string | { version?: IpVersion; message?: string | undefined })
packages/zod/src/v3/types.ts:1104
↓ 1 callersFunctionclaim
Returns the prototype to install on, or `undefined` if this group is already installed on it.
packages/zod/src/v4/core/util.ts:1181
↓ 1 callersFunctioncleanParams
(params: unknown, data: unknown)
packages/zod/src/v3/types.ts:4908
↓ 1 callersFunctionclone
(o: any)
packages/bench/moltar-libs.ts:248
↓ 1 callersFunctionclone
(def, params)
packages/zod/src/v4/classic/schemas.ts:201
↓ 1 callersFunctionclone
(_def, params)
packages/zod/src/v4/mini/schemas.ts:89
↓ 1 callersFunctioncloneIssues
(issues: errors.$ZodRawIssue[])
packages/zod/src/v4/core/memoizer.ts:37
↓ 1 callersFunctioncodePointLengthVar
(doc: Doc, ctx: CompileContext, accessor: string, inDoubt: string)
packages/zod/src/v4/core/compile.ts:478
↓ 1 callersFunctioncollect
()
packages/bench/memory/snapshot.ts:36
↓ 1 callersFunctioncollect
(iss: errors.$ZodRawIssue, side: "l" | "r")
packages/zod/src/v4/core/schemas.ts:2870
↓ 1 callersFunctioncompactTypeUnion
Rewrites `anyOf: [{type: "a"}, {type: "b"}]` to `type: ["a", "b"]`, which every JSON Schema draft treats as equivalent and most consumers render far b
packages/zod/src/v4/core/to-json-schema.ts:444
↓ 1 callersFunctioncompareCodeFences
(block: TabsBlock, zodTab: TabBlock, zodMiniTab: TabBlock, failures: string[])
packages/docs/content/api.test.ts:201
↓ 1 callersFunctioncompileValidator
* Build the validator `validate` calls: the same codegen as the parser with the output construction * dropped. A schema the flag cannot express reuse
packages/zod/src/v4/core/compile.ts:102
↓ 1 callersFunctioncontainer
(c: Ctx, depth: number)
packages/zod/src/v4/core/tests/compile-generative.test.ts:169
↓ 1 callersFunctioncontainsRef
* True when a subschema holds a `$ref` anywhere a schema can appear. Only those positions are * walked: `$ref` under `default` or an `x-` annotation
packages/zod/src/v4/classic/from-json-schema.ts:291
↓ 1 callersFunctionconvert
(withIntersection: boolean)
packages/zod/src/v4/classic/tests/to-json-schema.test.ts:3240
↓ 1 callersFunctionconvertBaseSchema
(schema: JSONSchema.JSONSchema, ctx: ConversionContext)
packages/zod/src/v4/classic/from-json-schema.ts:390
↓ 1 callersFunctioncorrupt
(rnd: () => number, value: unknown, depth = 0)
packages/zod/src/v4/core/tests/compile-differential.test.ts:894
↓ 1 callersFunctioncount
(root: any)
packages/zod/src/v4/classic/tests/cyclic-data.test.ts:578
↓ 1 callersFunctioncount
(c: Ctx, id: number)
packages/zod/src/v4/core/tests/compile-generative.test.ts:34
↓ 1 callersFunctioncounted
( slots: Record<string, unknown>, bad: Record<string, unknown> = {} )
packages/zod/src/v4/classic/tests/validate.test.ts:331
↓ 1 callersFunctioncreateSortItemSchema
(sortKeySchema: T)
packages/zod/src/v4/classic/tests/assignability.test.ts:393
↓ 1 callersFunctioncreateToJSONSchemaMethod
(schema: T, processors: Record<string, Processor> = {})
packages/zod/src/v4/core/to-json-schema.ts:836
← previousnext →401–500 of 2,258, ranked by callers