Function: safeSubtractKeepRight()
Safe subtracts two uints and returns an error if the result is invalid. Keeps the right type.
safeSubtractKeepRight<
T>(left,right):T
Defined in: packages/bitbadgesjs-sdk/src/common/math.ts:97
Safe subtracts two uints and returns an error if the result is invalid. Keeps the right type.
Type Parameters
T
T extends NumberType
Parameters
left
right
T
Returns
T