I am not the most experienced user, so I would like to know your opinion. And if I write in the wrong topic, I also apologize.
Does a JavaScript developer need to learn TypeScript? And why do you use TypeScript?
I tried to use it a little, and here are the advantages I highlighted for myself:
- Because it looks cleaner than jsdoc type annotations.
- Because it can give better autocomplete in your editor of choice than javascript.
- Because I've found bugs caused by typos in npm packages that could easily have been avoided if they used TS.
- Because the "private" keyword looks bett