DEV Community

Discussion on: You can’t run away from runtime errors using TypeScript

Collapse
 
latobibor profile image
András Tóth

I see people misunderstand TypeScript. In a purpose built statically typed language, you have type enforcement as well: if the object you had did not match the expectation about its shape you get a beefy error.

TypeScript is a superset of JavaScript built for 1) extra checks you can run for your CI/CD pipeline and 2) productivity while using an IDE.

It cannot enforce type. If you use it well you will get way more productive in your IDE than with vanilla-JS.