News for hackers. Stuff that matters.
Re:Node.js adds experimental support for TypeScript by sureIy on Thursday July 25, 2024 @06:51AM (#41067055)
You can’t write complex TypeScript types in JSDoc, which is what GP said.

The moment you need to declare or extend a type you’re done, you have to do so in a separate .ts file. It would be possible to do so and import it in JSDoc, but as mentioned before it’s a huge PITA on top of the PITA that writing types can already be (e.g. function/callbacks/generics)

There are no comments on this comment yet.