We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript is reporting an error when trying to perform an arithmetic operation between a "number" - "Number".
TS2363 , Number
Happens in Playground
[Playground link with relevant code](https://www.typescriptlang.org/play?#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA)
let number1 = 5; let newNumber = new Number(3); var result = number1 + newNumber
It is preventing to use a sum with a Number
It should probably let to perform a sum with the Number
The text was updated successfully, but these errors were encountered:
IMO TypeScript is protecting you from doing something silly like new Number(3).
new Number(3)
See #3447.
Sorry, something went wrong.
See also #2361
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
Bug Report
Typescript is reporting an error when trying to perform an arithmetic operation between a "number" - "Number".
π Search Terms
TS2363 , Number
π Version & Regression Information
Happens in Playground
β― Playground Link
[Playground link with relevant code](https://www.typescriptlang.org/play?#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA)
π» Code
π Actual behavior
It is preventing to use a sum with a Number
π Expected behavior
It should probably let to perform a sum with the Number
The text was updated successfully, but these errors were encountered: