Cannot be applied to

broken image

If the Typescript team really is going to insist that only number types can be added, and that Number types cannot, then I think that section of the spec should be clarified.įirst, you can't say 'in practice people aren't creating number via new Number', because you obviously don't have full knowledge of all javascript practice.

broken image

The language of section 4.15.2 is confusing because it only says Number (with a capital N) but then says primitive type, which implies number (with a lowercase n).