boolean()
boolean(
message?):BooleanSchema
Boolean schema with 0 overhead after tsup + Terser build.
Usage identical to before:
- boolean()
- boolean("Custom error")
Parametersโ
message?: stringโ
Custom error message (optional).
Returns: BooleanSchemaโ
BooleanSchema
Sinceโ
2.0.0