Const
Casts a number to a PositiveSafeInt type.
The value as a PositiveSafeInt type.
const branded = asPositiveSafeInt(128);assert(branded === 128);assert.ok(PositiveSafeInt.is(branded)); Copy
const branded = asPositiveSafeInt(128);assert(branded === 128);assert.ok(PositiveSafeInt.is(branded));
If the value is not a positive safe integer.
Casts a number to a PositiveSafeInt type.