boolean
Summary
Coerce input into a boolean.
Accepts:
booleanvalues as-is- strings
"true"and"false"(case-insensitive, trimmed)
Signature
function boolean(): Schema<unknown, boolean>;
Returns
A schema that produces a boolean
Coerce input into a boolean.
Accepts:
boolean values as-is"true" and "false" (case-insensitive, trimmed)function boolean(): Schema<unknown, boolean>;
A schema that produces a boolean