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