6 ms·
Yes, because Typescripts is 2 things: * A language, superset of ES6 that adds optional types * A compiler (like Babel) that will take your Typescript code, ch
by eloisant 11y ago
Yes, because Typescripts is 2 things:
* A language, superset of ES6 that adds optional types
* A compiler (like Babel) that will take your Typescript code, check if the types are correct, remove them, and transpile the non-ES5 parts of into ES5 (just like Babel).
So if you want to use Typescript-the-langage, you need Typescript-the-compiler and you will no longer need Babel.
- thejameskyle 11y agoMany people choose to use both. TypeScript for type-checking and stripping types, and Babel for compiling down ES2015 code. Babel follows the spec for that much closer than TypeScript does and has hundreds of plugins that allow you to do even more.