MCPcopy Create free account

hub / github.com/colinhacks/zod / functions

Functions2,104 in github.com/colinhacks/zod

↓ 3 callersFunctionmeasureStable
(label: string, count: number, factory: (i: number) => unknown, runs = 5)
packages/bench/memory/harness.ts:55
↓ 3 callersMethodmergeObjectSync
( status: ParseStatus, pairs: { key: SyncParseReturnType<any>; value: SyncParseReturnType<
packages/zod/src/v3/helpers/parseUtil.ts:128
↓ 3 callersMethodmime
(types: util.MimeTypes | Array<util.MimeTypes>, params?: string | core.$ZodCheckMimeTypeParams)
packages/zod/src/v4/classic/schemas.ts:2177
↓ 3 callersFunctionnestedSentinel
(input: any)
packages/bench/compile-wrapper-cost.ts:104
↓ 3 callersMethodnormalize
(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {}))
packages/zod/src/v4/classic/schemas.ts:375
↓ 3 callersMethodoutput
(output: NewReturns)
packages/zod/src/v4/classic/schemas.ts:2688
↓ 3 callersFunctionown
(inst: object, key: string, value: T, enumerable = true)
packages/zod/src/v4/core/util.ts:1082
↓ 3 callersFunctionparseAsync
(data, params)
packages/zod/src/v4/mini/schemas.ts:65
↓ 3 callersFunctionparsedType
(data: unknown)
packages/zod/src/v4/core/util.ts:962
↓ 3 callersFunctionrandomStr
(length: number)
packages/tsc/generate.ts:316
↓ 3 callersMethodremove
(schema: Schema)
packages/zod/src/v4/core/registries.ts:51
↓ 3 callersMethodsafeDecodeAsync
( data: core.input<this>, params?: core.ParseContext<core.$ZodIssue> )
packages/zod/src/v4/classic/schemas.ts:99
↓ 3 callersMethodsafeEncodeAsync
( data: core.output<this>, params?: core.ParseContext<core.$ZodIssue> )
packages/zod/src/v4/classic/schemas.ts:95
↓ 3 callersFunctionsafeParse
(data, params)
packages/zod/src/v4/classic/schemas.ts:300
↓ 3 callersMethodshape
()
packages/zod/src/v3/types.ts:2570
↓ 3 callersMethodsize
(size: number, params?: string | core.$ZodCheckSizeEqualsParams)
packages/zod/src/v4/classic/schemas.ts:1980
↓ 3 callersMethodslugify
()
packages/zod/src/v4/classic/schemas.ts:378
↓ 3 callersFunctionvalidateInput
(value: any)
packages/bench/compile-codec-direction.ts:50
↓ 2 callersFunctionDIRTY
(value: T)
packages/zod/src/v3/helpers/parseUtil.ts:163
↓ 2 callersMethodaddIssue
(arg: string | $ZodSuperRefineIssue)
packages/zod/src/v4/core/api.ts:1683
↓ 2 callersMethodaddIssues
@deprecated Push directly to `.issues` instead.
packages/zod/src/v4/classic/errors.ts:19
↓ 2 callersMethodargs
( ...items: Items )
packages/zod/src/v3/types.ts:3912
↓ 2 callersFunctionarray
()
packages/zod/src/v4/classic/schemas.ts:233
↓ 2 callersFunctionarray
(element: SomeType, params?: any)
packages/zod/src/v4/mini/schemas.ts:866
↓ 2 callersFunctionbase
(is_async?: boolean)
packages/zod/src/v4/classic/tests/async-parsing.test.ts:330
↓ 2 callersMethodbrand
( value?: T )
packages/zod/src/v4/mini/schemas.ts:25
↓ 2 callersMethodcheck
(payload: schemas.ParsePayload<T>)
packages/zod/src/v4/core/checks.ts:24
↓ 2 callersFunctionchecker
()
packages/zod/src/v3/tests/tuple.test.ts:31
↓ 2 callersFunctioncollect
(ranges: ts.CommentRange[] | undefined)
scripts/check-comments.ts:70
↓ 2 callersFunctioncomparisonOperand
(ctx: CompileContext, value: number | bigint | Date)
packages/zod/src/v4/core/compile.ts:461
↓ 2 callersFunctioncreateStandardJSONSchemaMethod
(schema: T, io: "input" | "output", processors: Record<string, Processor> = {})
packages/zod/src/v4/core/to-json-schema.ts:843
↓ 2 callersMethoddeepPartial
* @deprecated
packages/zod/src/v3/types.ts:2809
↓ 2 callersFunctiondescribe
(description: string)
packages/zod/src/v3/types.ts:514
↓ 2 callersFunctiondropsWhenAbsent
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 callersFunctionendsWithNative
(s: string)
packages/bench/compile-endswith.ts:11
↓ 2 callersFunctionendsWithRegex
(s: string)
packages/bench/compile-endswith.ts:15
↓ 2 callersFunctionendsWithSlice
(s: string)
packages/bench/compile-endswith.ts:21
↓ 2 callersFunctionendsWithSubstring
(s: string)
packages/bench/compile-endswith.ts:24
↓ 2 callersFunctionesc
(s: string)
scripts/triage-signal.ts:439
↓ 2 callersMethodexactPartial
()
packages/zod/src/v4/classic/schemas.ts:1594
↓ 2 callersMethodexclude
( values: U, params?: string | core.$ZodEnumParams )
packages/zod/src/v4/classic/schemas.ts:2055
↓ 2 callersMethodextract
( values: U, params?: string | core.$ZodEnumParams )
packages/zod/src/v4/classic/schemas.ts:2051
↓ 2 callersFunctionformatNumber
(val: number)
packages/bench/benchUtil.ts:36
↓ 2 callersFunctiongenerateFields
( params: Pick<GenerateObjectsParams, "numKeys" | "valueTypes" | "methods"> )
packages/tsc/generate.ts:327
↓ 2 callersFunctiongenerateNumberFormatCheck
(doc: Doc, def: checks.$ZodCheckNumberFormatDef, accessor: string)
packages/zod/src/v4/core/compile.ts:516
↓ 2 callersFunctiongenerateStringFormatCheck
(doc: Doc, ctx: CompileContext, def: StringFormatDef, accessor: string)
packages/zod/src/v4/core/compile.ts:712
↓ 2 callersFunctiongetLLMText
(page: InferPageType<typeof source>)
packages/docs/loaders/get-llm-text.ts:14
↓ 2 callersFunctionhandlePropertyResult
( result: ParsePayload, final: ParsePayload, key: PropertyKey, input: any, optin: "optional" | "defa
packages/zod/src/v4/core/schemas.ts:1901
↓ 2 callersFunctionhandleResult
( ctx: ParseContext, result: SyncParseReturnType<Output> )
packages/zod/src/v3/types.ts:87
↓ 2 callersFunctionhandwrittenNested
(input: unknown)
packages/bench/compile-vs-arktype.ts:268
↓ 2 callersFunctionhandwrittenSimple
(input: unknown)
packages/bench/compile-vs-arktype.ts:260
↓ 2 callersFunctionincludesIndexOf
(s: string)
packages/bench/compile-includes.ts:21
↓ 2 callersFunctionincludesNative
(s: string)
packages/bench/compile-includes.ts:11
↓ 2 callersFunctionincludesRegex
(s: string)
packages/bench/compile-includes.ts:15
↓ 2 callersMethodinnerType
()
packages/zod/src/v3/types.ts:4312
↓ 2 callersMethodinput
( args: Items, rest?: Rest )
packages/zod/src/v4/mini/schemas.ts:1975
↓ 2 callersFunctionisAborted
(x: ParseReturnType<any>)
packages/zod/src/v3/helpers/parseUtil.ts:172
↓ 2 callersFunctionisBackEdge
(ctx: object, value: unknown)
packages/zod/src/v4/core/memoizer.ts:205
↓ 2 callersFunctionisDirty
(x: ParseReturnType<T>)
packages/zod/src/v3/helpers/parseUtil.ts:173
↓ 2 callersFunctionisObject
(data: any)
packages/zod/src/v4/core/util.ts:400
↓ 2 callersFunctionisValidBase64URL
(data: string)
packages/zod/src/v4/core/schemas.ts:1047
↓ 2 callersFunctionisValidIPv6
(value: string)
packages/zod/src/v4/core/schemas.ts:885
↓ 2 callersFunctionisValidJWT
(token: string, algorithm: util.JWTAlgorithm | null = null)
packages/zod/src/v4/core/schemas.ts:1149
↓ 2 callersFunctionkeyExpr
(k: string | symbol)
packages/zod/src/v4/core/compile.ts:1120
↓ 2 callersFunctionlink
(i: Scored)
scripts/triage-signal.ts:435
↓ 2 callersFunctionmeasure
(label: string, count: number, factory: (i: number) => unknown)
packages/bench/memory/harness.ts:32
↓ 2 callersFunctionmediumReturnInput
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:76
↓ 2 callersMethodmergeArray
(status: ParseStatus, results: SyncParseReturnType<any>[])
packages/zod/src/v3/helpers/parseUtil.ts:101
↓ 2 callersMethodmin
(minSize: number, message?: errorUtil.ErrMessage)
packages/zod/src/v3/types.ts:3757
↓ 2 callersFunctionmultiBuildNew
(input: Record<string, unknown>)
packages/bench/compile-output.ts:246
↓ 2 callersFunctionmultiMutate
(input: Record<string, unknown>)
packages/bench/compile-output.ts:239
↓ 2 callersFunctionnestedClonePath
(input: NestedData)
packages/bench/compile-output.ts:182
↓ 2 callersFunctionnestedMutate
(input: NestedData)
packages/bench/compile-output.ts:177
↓ 2 callersFunctionnever
(params?: string | core.$ZodNeverParams)
packages/zod/src/v4/classic/schemas.ts:1420
↓ 2 callersFunctionnumericOperand
* 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 callersFunctionoutSide
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 callersFunctionoutSide
See `classic/in-out.ts`.
packages/zod/src/v4/mini/in-out.ts:18
↓ 2 callersMethodoutput
(output: NewReturns)
packages/zod/src/v4/mini/schemas.ts:1982
↓ 2 callersFunctionpick
(xs: T[])
packages/zod/src/v4/core/tests/compile-differential.test.ts:768
↓ 2 callersFunctionpick
(xs: T[])
scripts/compile-fuzz.ts:17
↓ 2 callersFunctionprintAvailableCases
()
packages/bench/compile-vs-arktype.ts:36
↓ 2 callersMethodprocess
* 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 callersFunctionrandomPick
(options: any[])
packages/bench/benchUtil.ts:23
↓ 2 callersMethodremoveDefault
@deprecated Use `.unwrap()` instead.
packages/zod/src/v4/classic/schemas.ts:2337
↓ 2 callersFunctionrun
()
packages/bench/index.ts:5
↓ 2 callersFunctionrun
(s: AnyZod)
packages/zod/src/v4/core/visit.ts:42
↓ 2 callersFunctionrunChecks
( payload: ParsePayload, checks: checks.$ZodCheck<never>[], ctx?: ParseContextInternal
packages/zod/src/v4/core/schemas.ts:231
↓ 2 callersMethodsafe
@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 callersMethodsafeParseAsync
( data: unknown, params?: core.ParseContext<core.$ZodIssue> )
packages/zod/src/v4/mini/schemas.ts:34
↓ 2 callersFunctionserializeDefaultValue
( value: unknown, schema: schemas.$ZodType, ctx: ToJSONSchemaContext, json: JSONSchema.BaseSchema, p
packages/zod/src/v4/core/json-schema-processors.ts:550
↓ 2 callersFunctionsmallBuildNew
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:22
↓ 2 callersFunctionsmallReturnInput
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:14
↓ 2 callersFunctionsmallSpread
(input: Record<string, unknown>)
packages/bench/compile-passthrough.ts:34
↓ 2 callersFunctionstartsWithIndex
(s: string)
packages/bench/compile-startswith.ts:27
↓ 2 callersFunctionstartsWithNative
(s: string)
packages/bench/compile-startswith.ts:11
↓ 2 callersFunctionstartsWithRegex
(s: string)
packages/bench/compile-startswith.ts:15
↓ 2 callersFunctionstartsWithSlice
(s: string)
packages/bench/compile-startswith.ts:21
↓ 2 callersFunctionstartsWithSubstring
(s: string)
packages/bench/compile-startswith.ts:24
↓ 2 callersMethodstep
@deprecated Use `.multipleOf()` instead.
packages/zod/src/v4/classic/schemas.ts:1105
↓ 2 callersFunctionstring
(params?: string | core.$ZodStringParams)
packages/zod/src/v4/classic/schemas.ts:611
← previousnext →201–300 of 2,104, ranked by callers