0
User
Recs.
Recs.
19
Updates
Last
Updated
Updated
Activity
21 Options
TypeScript is a language for application-scale JavaScript development.
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
SpecsUpdate
Current stable version3.7
IDE SupportVery good
Pros
Know any positive aspects of this option?
Cons
Con Type inference coverage is incomplete
The default type when declaring and using a variable is any
. For example, the following should break but does not:
function add(a:number) { return a + 1 }
function addAB(a, b) {return add(a) + b}
addAB("this should break but doesn't :(", 100)
In order to avoid this, you have to declare type signatures for every variable or parameter or set the flag --noImplicityAny
when running the compiler.
Know any negative aspects of this option?