DEV Community

Discussion on: Pros and cons of TypeScript

Collapse
 
macsikora profile image
Pragmatic Maciej

All you cons are really pros, compilation phase is a good thing, it is automation, some program does some work for you, in this particular example it does code correctness verification by type definitions and inference. Second, learning is a daily routine of every developer, at least it should be. Third, you don't need to use PropTypes. PropTypes are doing the same thing but in the runtime, where TS will do that in the compile time.

Collapse
 
alexkubica profile image
Alex Kubica 🇮🇱

I guess you're right, these cons can really be pros depending on your needs 😊
I tried listing these cons from an objective point of view.
Thanks for your comment!