@morojs/moro


@morojs/moro / z / ZodJSONSchemaInternals

Interface: ZodJSONSchemaInternals

Defined in: node_modules/zod/v4/classic/schemas.d.cts:665

Extends

  • _ZodJSONSchemaInternals

Properties

bag

bag: Record<string, unknown>

Defined in: node_modules/zod/v4/core/schemas.d.cts:69

Internal

A catchall object for bag metadata related to this schema. Commonly modified by checks using onattach.

Inherited from

_ZodJSONSchemaInternals.bag


constr()

constr: (def) => $ZodType

Defined in: node_modules/zod/v4/core/schemas.d.cts:67

Internal

The constructor function of this schema.

Parameters

def

any

Returns

$ZodType

Inherited from

_ZodJSONSchemaInternals.constr


def

Defined in: node_modules/zod/v4/core/schemas.d.cts:614

Schema definition.

Inherited from

_ZodJSONSchemaInternals.def


deferred

deferred: undefined | AnyFunc[]

Defined in: node_modules/zod/v4/core/schemas.d.cts:40

Internal

List of deferred initializers.

Inherited from

_ZodJSONSchemaInternals.deferred


input

input: JSONType

Defined in: node_modules/zod/v4/classic/schemas.d.cts:667

Overrides

_ZodJSONSchemaInternals.input


isst

Defined in: node_modules/zod/v4/core/schemas.d.cts:615

Internal

The set of issues this schema might throw during type checking.

Inherited from

_ZodJSONSchemaInternals.isst


optin

optin: undefined | "optional"

Defined in: node_modules/zod/v4/core/schemas.d.cts:620

Internal

Inherited from

_ZodJSONSchemaInternals.optin


optout

optout: undefined | "optional"

Defined in: node_modules/zod/v4/core/schemas.d.cts:621

Internal

Inherited from

_ZodJSONSchemaInternals.optout


output

output: JSONType

Defined in: node_modules/zod/v4/classic/schemas.d.cts:666

Overrides

_ZodJSONSchemaInternals.output


parent?

optional parent: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

Defined in: node_modules/zod/v4/core/schemas.d.cts:75

Internal

The parent of this schema. Only set during certain clone operations.

Inherited from

_ZodJSONSchemaInternals.parent


pattern

pattern: undefined | RegExp

Defined in: node_modules/zod/v4/core/schemas.d.cts:616

Internal

This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral().

Inherited from

_ZodJSONSchemaInternals.pattern


propValues?

optional propValues: PropValues

Defined in: node_modules/zod/v4/core/schemas.d.cts:63

Internal

A set of literal discriminators used for the fast path in discriminated unions.

Inherited from

_ZodJSONSchemaInternals.propValues


toJSONSchema()?

optional toJSONSchema: () => unknown

Defined in: node_modules/zod/v4/core/schemas.d.cts:73

An optional method used to override toJSONSchema logic.

Returns

unknown

Inherited from

_ZodJSONSchemaInternals.toJSONSchema


traits

traits: Set<string>

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

Internal

Stores identifiers for the set of traits implemented by this schema.

Inherited from

_ZodJSONSchemaInternals.traits


values

values: undefined | PrimitiveSet

Defined in: node_modules/zod/v4/core/schemas.d.cts:617

Internal

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?

Inherited from

_ZodJSONSchemaInternals.values


version

version: object

Defined in: node_modules/zod/v4/core/schemas.d.cts:35

The @zod/core version of this schema

major

readonly major: 4

minor

readonly minor: 1

patch

readonly patch: number

Inherited from

_ZodJSONSchemaInternals.version

Methods

parse()

parse(payload, ctx): MaybeAsync<ParsePayload<unknown>>

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

Internal

Parses input, doesn't run checks.

Parameters

payload

ParsePayload<any>

ctx

ParseContextInternal

Returns

MaybeAsync<ParsePayload<unknown>>

Inherited from

_ZodJSONSchemaInternals.parse


run()

run(payload, ctx): MaybeAsync<ParsePayload<unknown>>

Defined in: node_modules/zod/v4/core/schemas.d.cts:42

Internal

Parses input and runs all checks (refinements).

Parameters

payload

ParsePayload<any>

ctx

ParseContextInternal

Returns

MaybeAsync<ParsePayload<unknown>>

Inherited from

_ZodJSONSchemaInternals.run