News for hackers. Stuff that matters.
Re:JSDoc is TypeScript by efortis on Sunday December 14, 2025 @04:57PM (#46267442)
jsdoc is nice because you don’t have to write the non-helpful types.

---

In WebStorm, jsdoc can be rendered in HTML, which makes the code easier to scan. Here's a side-by-side VSCode vs WebStorm:

https://x.com/efortis/status/1989776568676221137

---

And in jsdoc you can have an inline description:

  @prop {number} width  Video width in pixels
Re:JSDoc is TypeScript by culi on Sunday December 14, 2025 @06:49PM (#46268464)
> you don’t have to write the non-helpful types

This entirely depends on your tsconfig setup. You can run a JSDoc-typed project in strict mode exactly the same way you would a *.ts-typed project.

Re:JSDoc is TypeScript by efortis on Sunday December 14, 2025 @07:07PM (#46268630)
Do you know if it's possible to do that the other way around?
Re:JSDoc is TypeScript by culi on Sunday December 14, 2025 @07:18PM (#46268717)
You mean a TypeScript project without strict mode? Sure. Again, whether you're defining types in JSDoc comments or in .ts files, the behavior is entirely governed by a tsconfig file