Returns the sum of two numbers.
Note:
-999
999
import type {Sum, PositiveInfinity, NegativeInfinity} from 'type-fest';type A = Sum<111, 222>;//=> 333type B = Sum<-111, 222>;//=> 111type C = Sum<111, -222>;//=> -111type D = Sum<PositiveInfinity, -9999>;//=> Infinitytype E = Sum<PositiveInfinity, NegativeInfinity>;//=> number Copy
import type {Sum, PositiveInfinity, NegativeInfinity} from 'type-fest';type A = Sum<111, 222>;//=> 333type B = Sum<-111, 222>;//=> 111type C = Sum<111, -222>;//=> -111type D = Sum<PositiveInfinity, -9999>;//=> Infinitytype E = Sum<PositiveInfinity, NegativeInfinity>;//=> number
Returns the sum of two numbers.
Note:
-999~999.