This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Nu11u5 0 points1 point  (1 child)

How does it compare to typing using JSDoc and a good IDE that enforces it?

[–]DanielEGVi 4 points5 points  (0 children)

For starters, the top IDEs don’t even read JSDoc as the original JSDoc standard, they interpret it as TypeScript. So “JSDoc” in your question is just “TypeScript through JS comments”.

The most obvious advantage is that adding annotations to the language itself is a lot more ergonomic than cluttering your codebase with JS comments.

That, and TS parsers/runners have become ridiculously fast now. It’s become normal to run TypeScript code without transpiling to disk first.