DEV Community

Discussion on: Using Custom Types in JavaScript Docs

Collapse
 
kepta profile image
Kushan Joshi

Yes please use Typescript, instead of trying to hack around informal types with JSDoc.

Collapse
 
4lch4 profile image
Devin W. Leaman

Do you have any recommendations to learn TypeScript? I mentioned it above but I'm not too fond of having to learn a new language just for types info but if it's as helpful as it seems I may as well.

Collapse
 
kepta profile image
Kushan Joshi

As everyone said, typescript is a superset of JavaScript. So any valid JavaScript is already typescript, you add the types superpower at your leisure.