Function: safeAddKeepRight()
Safe adds two uints and returns an error if the result is invalid. Keeps the right type.
safeAddKeepRight<
T>(left,right):T
Defined in: packages/bitbadgesjs-sdk/src/common/math.ts:116
Safe adds 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