Type alias Add<Left, Right>

Add<Left, Right>: [ParseSignFloatNumber<Left>, ParseSignFloatNumber<Right>] extends [infer X extends SignFloatNumber, infer Y extends SignFloatNumber]
    ? StringifySignFloat<AddSignFloatNumber<X, Y>>
    : never

Add two numbers

Type Parameters

  • Left extends NumberLike

    Left operand

  • Right extends NumberLike

    Right operand

    type Example = Add<"123", "456">
    

Generated using TypeDoc