DEV Community

Bob Firestone
Bob Firestone

Posted on

Typescript is really just an aggressive linter

Until typescript is doing runtime type checking it is just an aggressive linter and that’s okay. Having something to sanity check that the things you are passing around should have the right interface is valuable for developers. Compile time type checking is not going to be 100% effective at runtime. Let’s be honest it doesn’t actually need to be to provide a lot of value.

Top comments (1)

Collapse
 
matjones profile image
Mat Jones

I don’t think it’s accurate to say it’s “just an aggressive linter”. It’s a distinct programming language, with language features that don’t exist in JavaScript.

Compile time type checking is not going to be 100% effective at runtime

But that’s true for literally any language.