Skip to content

TypedPrimitive

type TypedPrimitive<T> = intersection

Carries the output type alongside the primitive parser.

Callable as (v: string) => T. Used as a leaf value inside schema descriptors and wherever the output type is needed.

Learn: Primitives and builders

Last updated: