JSDoc as an alternative TypeScript syntax
August 5, 2024
But what if you can’t use TypeScript? You may encounter circumstances where you need to work in plain JavaScript, be it tooling constraints or a team member who does not like static typing.Under these circumstances, look to JSDoc for salvation:
Think of this post as your crash course in using JSDoc as an alternative syntax for TypeScript. We’ll cover all the important TypeScript-related features JSDoc has to offer—and their limitations.
If typed JavaScript is important, but for whatever reason Typescript isn’t an option, then JSDoc might be the answer, as Alex Harri discusses.