r/javascript • u/Firemage1213 • Mar 12 '26
AskJS [AskJS] JSDoc Reality Check
Are we finally allowed to admit that using JSDoc to avoid a build step is actually worse than just writing TypeScript?
I am tired of pretending that writing a 40 line, heavily nested type definition inside a massive green comment block is somehow "cleaner" than just using TS. I get the appeal of zero build steps and shipping raw JS, but watching developers bend over backwards to write perfectly formatted u/typedef syntax just to appease their LSP feels like we are completely missing the point of why we adopted types in the first place.
View all comments
Show parent comment
10
u/boneskull Mar 12 '26
You get type safety w/ TS-style JSDoc tags if you run
tscon your sources. We’re not talking aboutjsdocthe tool.