by no_wizard · 4y ago · 0 comments
The limitations are too much for complex projects at scale. I strongly believe this is why Closure types didn't take off.
That and Google's lack of developer relations around the project
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.
Yes, you can. Using `import('./someFile').SomeType`
Though I do agree, JSDoc works, but isn't as nice as directly writing types in a .ts file