DEV Community

Cover image for TypeScript: 6 Pros and 4 Cons (biased)

TypeScript: 6 Pros and 4 Cons (biased)

Steffen Pedersen on January 02, 2020

In this article I will go over some of my thoughts on TypeScript. It will not be an in depth article, and I will try to keep it as short as possibl...
Collapse
 
coly010 profile image
Colum Ferry • Edited

Can you elaborate on con 3?

All JavaScript is valid TypeScript.
And the @types repo as a lot of typings for libraries that don't ship with typing themselves.

You can use the libraries in TypeScript without hassle nearly all times, as the TypeScript is transpiled back to JavaScript anyway.

Normally you are consuming a third party library, not injecting your code into it. I feel like I'm missing part of the explanation of your con?

Collapse
 
steffenpedersen profile image
Steffen Pedersen

Thank you for pointing this out 😊 I have updated the article with a comment at the bottom.