TypeScript without TypeScript
However, therein lies one of TypeScript’s weaknesses: the setup. TS adds a level of overhead that is, in my opinion, prohibitively complex for most of my projects. So while I would love the benefits of working in TypeScript, I don’t want to go through the trouble of setting it up.
In searching for a solution to my problem, I came across TypeScript without TypeScript – JSDoc superpowers by @ddprrt on fettblog.eu. In it, the author highlights how JSDoc can provide some of the features of TypeScript without the setup.
// @ts-check and a TS-centric IDE like VS Code, you’ll find yourself in a great position when developing.
Give the article a read and let me know what you think.