This content originally appeared on DEV Community and was authored by Rammina
I love Typescript and enjoy using it. However, it's not perfect and has its downsides.
Some downsides of Typescript (based on my experiences and what others have shared):
- another thing to learn
- more code boilerplate, especially for 3rd party libraries (glares at Redux)
- installation costs initial time (but it makes up for it later with the type safety)
- npm modules without typedef are difficult to work with TS
- it only starts to pay off once your codebase gets larger and complex
- the resources are scattered in multiple places (no universal, comprehensive resource like MDN; I find the Typescript handbook lacking)
- slower compile/build time
I most likely will use Typescript for most of my projects from here on, unless a third-party library has no type definitions or doesn't work well with it.
DISCLAIMER:
This post only expresses my thoughts and opinions (based on my limited knowledge) and is in no way a substitute for actual references. If I ever make a mistake or if you disagree, I would appreciate corrections in the comments!
This content originally appeared on DEV Community and was authored by Rammina

Rammina | Sciencx (2021-09-30T06:19:05+00:00) Downsides of TypeScript?. Retrieved from https://www.scien.cx/2021/09/30/downsides-of-typescript/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.