DEV Community

loading...

Typescript is really just an aggressive linter

bobfirestone profile image Bob Firestone ・1 min read

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.

Discussion (1)

pic
Editor guide
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.