Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use types written in a .d.ts file in javascript. You reference them with the JSDoc annotations.

And no it's not the case you may as well write typescript at that point - because you're still using the actual language the browser runs, and not transpiling.



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

Search: