Hacker News new | ask | show | jobs
by joduplessis 1134 days ago
I love pure JS over TS any day, but isn't this using JSDoc in a way it's not meant to be used? Why would you use JSDoc as a JS type framework? Or is the post title a bit misleading...?
2 comments

Because this way you get amazing IDE support with code navigation, refactoring, and (with strict mode) warnings about likely bugs and missing null checks.
this is exactly what JSDoc is for, it's had these capabilities from the start.