a just-in-time function compilation-based typescript data validation library
an array
represents an array whose contents are represented by Subschema
a boolean
represents a boolean
a custom check, gated by a type guard function
represents a value gated by a custom check
a discriminated union of object values.
represents a discriminated union of object types
a literal value
the literal null
a number
represents a number
an object value.
an optional value.
represents a value which may be undefined (or not provided at all, e.g. in an object), but is otherwise represented by Subschema
a string
represents a string
a tuple value
represents a tuple whose contents are represented by individual subschemas
the literal undefined
a union value.
represents a union type, whose constituent types are defined by Subschemas
an unknown value
represents an unknown value
compile a validation function from a given schema. returns a SchemaValidator
a schema validation function