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.
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.