Open
Description
It is possible to use JSDoc comments with the TypeScript compiler to enforce some strong typing, as documented in the following resources:
- https://medium.com/@trukrs/type-safe-javascript-with-jsdoc-7a2a63209b76 - this is the best explanation I have found but may be a little outdated
- https://devblogs.microsoft.com/typescript/how-to-upgrade-to-typescript-without-anybody-noticing-part-1/ - more formal explanation which I think is not quite as clear
Here is the best example I have found: prettier/prettier#6313
I would personally favor this alternative over porting to TypeScript as proposed in #64.