Aller au contenu principal

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