4 ms·
Probably an unpopular opinion, but my favorite thing about typescript is what it's done for the jsdoc community. A bunch of stuff had to be built to support go
by claytongulick 4y ago
Probably an unpopular opinion, but my favorite thing about typescript is what it's done for the jsdoc community.
A bunch of stuff had to be built to support good tooling in vscode for types with JavaScript, and that was leveraged for jsdoc also.
I don't use typescript, but I benefit from it in multiple ways, js doc and the occasional .d.ts file have made my life better.
- c-hendricks 4y agoIf you use things like `import('some-package').SomeType` in JSDoc I don't think it's fair to say you don't use TypeScript. You do, that's only supported in TS.
- claytongulick 4y agoYep, and I do. That's my point. I don't write typescript, but it has done wonders for the jsdoc ecosystem.
- FractalHQ 4y agoI get triggered by JSDoc and I really wish I didn’t. To me it’s clearly just more verbose Typescript with less features. I can’t understand the appeal, and most arguments I’ve heard for it can be summed up to “typescript is spooky and I don’t want to learn it so I’ll use this inferior thing instead”, which for my personality, is as hard for me to accept as it would be to suffocate myself by holding my breath. The only other argument being “no compile step” which is a non-argument in the age of modern bundlers.