Const
Casts a number to the SafeUint branded type.
number
SafeUint
Validates that the value is a non-negative safe integer and returns it with the SafeUint brand. Throws a TypeError otherwise.
TypeError
The value as a SafeUint
If the value is not a non-negative safe integer
Casts a
numberto theSafeUintbranded type.Validates that the value is a non-negative safe integer and returns it with the
SafeUintbrand. Throws aTypeErrorotherwise.