Const
Casts a number to the NonPositiveSafeInt branded type.
number
NonPositiveSafeInt
Validates that the value is a non-positive safe integer and returns it with the NonPositiveSafeInt brand. Throws a TypeError otherwise.
TypeError
The value as a NonPositiveSafeInt
If the value is not a non-positive safe integer
Casts a
numberto theNonPositiveSafeIntbranded type.Validates that the value is a non-positive safe integer and returns it with the
NonPositiveSafeIntbrand. Throws aTypeErrorotherwise.