2 ms·
TypeScript understands some of the comment syntax, but the type systems are different, the module systems are different, and a ton of other stuff is different.
by evmar 10y ago
TypeScript understands some of the comment syntax, but the type systems are different, the module systems are different, and a ton of other stuff is different. Look through the test cases in https://github.com/angular/tsickle/tree/master/test_files https://github.com/angular/tsickle/tree/master/test_files to see the difference between TypeScript-annotated code and Closure-annotated code.
- nojvek 10y agoThat's a pretty awesome project. Didn't realize something like that existed. In this case, I think closure should start to understand typescript syntax. Or typescript needs to borrow ideas from closure on minifying and dead code removal.