coerceBoolean()
coerceBoolean(
message?):BooleanSchema
Coerce Boolean schema - converts to boolean.
Parametersโ
message?: stringโ
Custom error message (optional).
Returns: BooleanSchemaโ
Schema that coerces to boolean.
Sinceโ
2.0.0