Skip to content
Logo

T.object

A structure: what most schemas are built inside.

See Objects for nesting, computed fields, sequences, and overrides, and Composition for .extend, .refine, .override, and .rebase. To keep only some fields, see T.pick and T.omit.

Some rules only make sense for a field inside an object: T.omittable, T.optional, and compute, which you get from .refine(({ compute }) => ...). There is no T.compute. For a schema that refers to itself, see T.recursive.