boolean
Builds a parser for booleans. DDataParser.boolean() checks the input, supports coercion ("true", 1, etc.), and allows custom checkers via checkerRefine.
Interactive example
Parameters
errorMessage: custom message when the input cannot be interpreted as a boolean.checkers:checkerRefineto add business rules (for example forcetrue).coerce:trueto convert"true","false",1,0, etc. Defaults tofalse.
Return value
A DataParserBoolean with parse, asyncParse, exec, asyncExec, addChecker, clone. schema.parse(data) returns DEither.success<boolean> or DEither.error<DataParserError>.
