Const
Casts a number to the NegativeInt branded type.
number
NegativeInt
Validates that the value is a negative integer and returns it with the NegativeInt brand. Throws a TypeError otherwise.
TypeError
The value as a NegativeInt
If the value is not a negative integer
Casts a
numberto theNegativeIntbranded type.Validates that the value is a negative integer and returns it with the
NegativeIntbrand. Throws aTypeErrorotherwise.