Hacker News new | past | comments | ask | show | jobs | submit login

Do look into jsdoc typing and "//@ts-check".

I do agree with you on the compilation, and this is the reason I'm still writing the occasional .js or .mjs file. However, the js I write starts with enabling ts-check and has all of its type information encoded as comment. This way, I'm getting the benefits of typescript while writing the code without needing the whole compilation step.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: