Skip to content

Interface: $ZodTypeInternals<O, I>

Defined in: node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:82

Internal

Type Parameters

Type ParameterDefault type
Ounknown
Iunknown

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
versionpublic{ major: 4; minor: 3; patch: number; }The @zod/core version of this schema_$ZodTypeInternals.versionnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:37
version.majorreadonly4--node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts:2
version.minorreadonly3--node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts:3
version.patchreadonlynumber--node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts:4
defpublic$ZodTypeDefSchema definition._$ZodTypeInternals.defnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:39
deferredpublicAnyFunc[] | undefinedInternal List of deferred initializers._$ZodTypeInternals.deferrednode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:42
traitspublicSet<string>Internal Stores identifiers for the set of traits implemented by this schema._$ZodTypeInternals.traitsnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:48
optin?public"optional"Internal_$ZodTypeInternals.optinnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:53
optout?public"optional"Internal_$ZodTypeInternals.optoutnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:55
values?publicPrimitiveSetInternal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record(). Defined on: enum, const, literal, null, undefined Passthrough: optional, nullable, branded, default, catch, pipe Todo: unions?_$ZodTypeInternals.valuesnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:62
propValues?publicPropValuesInternal A set of literal discriminators used for the fast path in discriminated unions._$ZodTypeInternals.propValuesnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:65
patternpublicRegExp | undefinedInternal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral()._$ZodTypeInternals.patternnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:67
constrpublicObjectInternal The constructor function of this schema._$ZodTypeInternals.constrnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:69
bagpublicRecord<string, unknown>Internal A catchall object for bag metadata related to this schema. Commonly modified by checks using onattach._$ZodTypeInternals.bagnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:71
isstpublic$ZodIssueBaseInternal The set of issues this schema might throw during type checking._$ZodTypeInternals.isstnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:73
processJSONSchema?public(ctx: ToJSONSchemaContext, json: JSONSchema, params: ProcessParams) => voidInternal Subject to change, not a public API._$ZodTypeInternals.processJSONSchemanode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:75
toJSONSchema?public() => unknownAn optional method used to override toJSONSchema logic._$ZodTypeInternals.toJSONSchemanode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:77
parent?public$ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>Internal The parent of this schema. Only set during certain clone operations._$ZodTypeInternals.parentnode_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:79
outputpublicOInternal The inferred output type-node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:84
inputpublicIInternal The inferred input type-node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:86

Methods

run()

ts
run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload<unknown>>;

Defined in: node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:44

Internal

Parses input and runs all checks (refinements).

Parameters

ParameterType
payloadParsePayload<any>
ctxParseContextInternal

Returns

MaybeAsync<ParsePayload<unknown>>

Inherited from

ts
_$ZodTypeInternals.run

parse()

ts
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload<unknown>>;

Defined in: node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:46

Internal

Parses input, doesn't run checks.

Parameters

ParameterType
payloadParsePayload<any>
ctxParseContextInternal

Returns

MaybeAsync<ParsePayload<unknown>>

Inherited from

ts
_$ZodTypeInternals.parse

Matterway Assistant SDK Documentation