integer: Decoder<number>

Decode an integer. Floating point values are not accepted.

Example

decode(Decode.number, 42) == 42
decode(Decode.number, 42.2) // Throws
decode(Decode.number, NaN) // Throws

Generated using TypeDoc