BooleanFromNumber overview
Added in v1.0.0
Table of contents
Conversion
BooleanFromNumber
A boolean value whose encoded representation is a number, where 0 is false and 1 is true.
Strictly speaking, this will decode any number (0 becomes false, and non-zero becomes true), but will only encode 0 and 1.
Signature
export declare const BooleanFromNumber: Schema<
Opaque<number, FloatBrand<-1.7976931348623157e308, 1.7976931348623157e308>>,
boolean
>
Added in v1.0.0