by camus2 · 12y ago · 0 comments
It's module system is a mistake(it should be module system agnostic,not AMD or CommonJS),and very confusing.
The biggest problem is javascript is so dynamic you cant create type definitions for every library outthere and expect the typesystem to work.
Typescript is good if you are porting something from AS3/C#/Java to javascript,or if You want to model a complex domain,without touching the DOM api(or node api).
It sucks as soon as you try to use jQuery with it.You end up with any everywhere which defeats the purpose of that language.
In my opinion,if you need to pick a js alternative,choose Traceur.
Also the module system is module system agnostic and it can compile either to commonjs or amd, it depends on a compiler switch. I am using mostly requirejs and it works well.
[1] https://github.com/borisyankov/DefinitelyTyped
[2] https://github.com/borisyankov/DefinitelyTyped/tree/master/j...