number: Decoder<number>

Decode any valid JavaScript Number that is not NaN

Example

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

Generated using TypeDoc