Downsides of TypeScript?

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 librari…


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


Print Share Comment Cite Upload Translate Updates
APA

Rammina | Sciencx (2021-09-30T06:19:05+00:00) Downsides of TypeScript?. Retrieved from https://www.scien.cx/2021/09/30/downsides-of-typescript/

MLA
" » Downsides of TypeScript?." Rammina | Sciencx - Thursday September 30, 2021, https://www.scien.cx/2021/09/30/downsides-of-typescript/
HARVARD
Rammina | Sciencx Thursday September 30, 2021 » Downsides of TypeScript?., viewed ,<https://www.scien.cx/2021/09/30/downsides-of-typescript/>
VANCOUVER
Rammina | Sciencx - » Downsides of TypeScript?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/09/30/downsides-of-typescript/
CHICAGO
" » Downsides of TypeScript?." Rammina | Sciencx - Accessed . https://www.scien.cx/2021/09/30/downsides-of-typescript/
IEEE
" » Downsides of TypeScript?." Rammina | Sciencx [Online]. Available: https://www.scien.cx/2021/09/30/downsides-of-typescript/. [Accessed: ]
rf:citation
» Downsides of TypeScript? | Rammina | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.