So I recently stumbled upon TypeScript and found it intriguing, especially since I enjoy adding annotations in my code. The only downside is that I would have to change all my .js files to .ts files in order to fully utilize TypeScript's capabilities. I wish I could add annotations to my functions using TypeScript without having to rename my files, but unfortunately, that isn't an option. This leads to my main question: Can I continue writing JavaScript code as usual even after renaming the files with a .ts extension?
Currently, I've started incorporating annotations like
@param
{string} argument
Explanation
and I can already see the benefits. However, I want to do more with these annotations to enhance my codebase. My goal is to use these annotations for future documentation purposes in my project.