I need Babel with TypeScript
Should I use typescript? or can I only use ES6? [closed]
Would you like to improve this question? Update the question so it can be answered with facts and quotes by editing this post.
Closed 5 years ago.
I've been using Typescript for about a year and a half in my current angles project, and while there are some problems with definitions every now and then, the DefinitelyTyped project does an excellent job of keeping up with the latest versions of the most popular libraries.
If you plan to use Angle 2 there are many examples of TS usage and I think the team will continue to provide most of the documentation in TS, but you certainly don't need to use TS to use Angle 2.
ES6 has some nice features and personally I plan to get used to them, but I wouldn't consider it production-ready language at this point. Mainly due to a lack of support from current browsers. Of course, you can write your code in ES6 and use a transpiler to bring it to ES5. This seems to be the most popular practice right now.
Overall, I think the answer comes down to what you and your team love to learn. Personally, I think that both TS and ES6 will have good support and a long future. I prefer TS though as you tend to get voice capabilities faster and for now the tool support is a bit better (in my opinion).
Decision tree between ES5, ES6 and TypeScript
Do you mind having a build step?
- Yes - Use ES5
- No - go ahead
Do you want to use types?
- Yes - Use TypeScript
- No - Use ES6
- Why is Myanmar important to India
- What are some Switchfoot lyrics about love
- What if Narendra Modi marries Smriti Irani
- Why are prisoners being torn apart
- Which spelling is correct
- Why does Germany not have any aircraft carriers?
- How important are 3 Jewish ancestors
- How do Hawaiians see mainland America
- How is the life of Gujarati
- What do INTJs do when they're bored
- What positions does the governor appoint
- What are the actual satanic verses
- Massage helps reduce menstrual cramps
- How long do redwood trees live
- What is an Abraxan in Harry Potter
- Who is the world famous architect
- What is state income tax in California
- Are there any Chinese luxury fashion brands
- Killed Radiohead Rock n Roll
- Can you drown from cramps?
- What is feces dust
- What are the standard pallet sizes
- Which colleges accept a CMAT score of 134
- What is the penalty for caste discrimination