Const
Casts a number to the NonZeroSafeInt branded type.
number
NonZeroSafeInt
Validates that the value is a non-zero safe integer and returns it with the NonZeroSafeInt brand. Throws a TypeError otherwise.
TypeError
The value as a NonZeroSafeInt
If the value is not a non-zero safe integer
Casts a
numberto theNonZeroSafeIntbranded type.Validates that the value is a non-zero safe integer and returns it with the
NonZeroSafeIntbrand. Throws aTypeErrorotherwise.