4 ms·
What do you mean by Typescript Google closure integration? Typescript understands most of closure comment syntax. They should throw typechecking errors which t
by nojvek 10y ago
What do you mean by Typescript Google closure integration?
Typescript understands most of closure comment syntax. They should throw typechecking errors which they currently aren't doing.
- evmar 10y agoTypeScript 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.