Const
Casts a number to the PositiveUint32 branded type.
number
PositiveUint32
Validates that the value is a positive integer in [1, 2^32) and returns it with the PositiveUint32 brand. Throws a TypeError otherwise.
TypeError
The value as a PositiveUint32
If the value is not a positive integer in [1, 2^32)
Casts a
numberto thePositiveUint32branded type.Validates that the value is a positive integer in [1, 2^32) and returns it with the
PositiveUint32brand. Throws aTypeErrorotherwise.