DEV Community

Discussion on: TypeScript: 6 Pros and 4 Cons (biased)

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.