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