Skip to content

Primitive

type Primitive = unknown

Opaque reference to a primitive parser.

Carries the runtime metadata (_type, _required, jsonSchema) but no value-type information. Used wherever a collection of primitives is held without needing to invoke them or know their output type. To invoke a primitive and recover a typed value, use TypedPrimitive.

Learn: Primitives and builders

Last updated: