News for hackers. Stuff that matters.
Re:TypeScript 3.7 by nothrabannosir on Tuesday November 05, 2019 @07:00PM (#21458303)
This is correct. Move to TypeScript for the types. If all you want is the latest syntactic developments from ES, babel is a better fit. It tends to be further ahead than TS for the bleeding edge features.
Re:TypeScript 3.7 by z3t4 on Tuesday November 05, 2019 @07:27PM (#21458513)
You can even make your own definitions and syntax sugar using Babel. (If we continue to add more syntax sugar to JS, it will soon be more complicated then C++.)
Re:TypeScript 3.7 by city41 on Tuesday November 05, 2019 @08:14PM (#21458795)
You can as well in TypeScript, it's just never been promoted or talked about much. Which is a shame. When I get a decent chunk of free time I plan to play with it, I'm curious if it's possible to write a translation layer that would allow using babel plugins in TS.

Here is an article on the TS feature: https://dev.doctorevidence.com/how-to-write-a-typescript-tra...