bool: Decoder<boolean>

Decode either true or false. Nothing else.

Example

decode(Decode.bool, true) === true
decode(Decode.bool, false) === false
decode(Decode.bool, undefined) // Throws

Generated using TypeDoc