4 ms·
It's not much different from using some 3rd party linter for another language, like Psalm for PHP or whatever people use for Python. The only difference is Psal
by qwm 2y ago
It's not much different from using some 3rd party linter for another language, like Psalm for PHP or whatever people use for Python. The only difference is Psalm checks special comment syntax (which TypeScript can also do with JSDoc) and Python has basic type annotation syntax in its spec.
Once you realize that TypeScript is a very advanced linter rather than a language, it's much less ridiculous sounding. I used TypeScript on some medium sized JS backends without using TS syntax using the `checkJs` flag and heavy use of JSDoc comments. It offered almost the same checking capabilities, just with a more annoying syntax.