Re:Complete Rewrite of ESLint
by Xelynega on Monday November 28, 2022 @10:32AM
(#33774827)
Doesn't JSDoc(which the original post wants to use) also allow you to robustly define interfaces?
[ Parent
| on HN ]
Jsdoc has the same issue as regular comments. It’s not the source of truth but someone’s hopefully up to date version of the truth.
You’re wrong. TypeScript allows annotating types within JSDoc comments, and knows how to read it. Writing in JavaScript and using TypeScript as a type checker is a perfectly feasible option that many have picked (including this eslint rewrite).
https://www.typescriptlang.org/docs/handbook/jsdoc-supported...