Hacker News new | ask | show | jobs
by Waterluvian 700 days ago
Jsdoc is honestly fine for simple and smaller projects. But yeah, it’s definitely not nearly as expensive while being anywhere as succinct.
1 comments

JSDoc is for docs, TypeScript is a static type checker. How can these tools be used interchangeably?
You can configure tsconfig.json to read JSDoc and error on invalid types so that you effectively get the same behavior as writing typescript.