Const
Casts a number to the NonZeroUint32 branded type.
number
NonZeroUint32
Validates that the value is a non-zero integer in [1, 2^32) and returns it with the NonZeroUint32 brand. Throws a TypeError otherwise.
TypeError
The value as a NonZeroUint32
If the value is not a non-zero integer in [1, 2^32)
Casts a
numberto theNonZeroUint32branded type.Validates that the value is a non-zero integer in [1, 2^32) and returns it with the
NonZeroUint32brand. Throws aTypeErrorotherwise.