News for hackers. Stuff that matters.
Re:Node.js adds experimental support for TypeScript by Waterluvian on Thursday July 25, 2024 @08:36AM (#41067920)
Jsdoc is honestly fine for simple and smaller projects. But yeah, it’s definitely not nearly as expensive while being anywhere as succinct.
Re:Node.js adds experimental support for TypeScript by yard2010 on Thursday July 25, 2024 @12:18PM (#41070429)
JSDoc is for docs, TypeScript is a static type checker. How can these tools be used interchangeably?
Re:Node.js adds experimental support for TypeScript by styfle on Friday July 26, 2024 @11:10AM (#41079245)
You can configure tsconfig.json to read JSDoc and error on invalid types so that you effectively get the same behavior as writing typescript.