A validator function: takes an unknown value and either returns the narrowed value or throws a TypeError. Used by combinators (nullable, optional, union) to compose validators.
TypeError
nullable
optional
union
The narrowed value type on success
A validator function: takes an unknown value and either returns the narrowed value or throws a
TypeError. Used by combinators (nullable,optional,union) to compose validators.