Hacker News new | ask | show | jobs
by LAC-Tech 1425 days ago
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.