|
|
|
|
|
by no_wizard
1425 days ago
|
|
until you need to type the shape of objects, and want to share that shape with other files. You can't import JSDoc types from other files. At which point, you would be forced to create `types.d.ts` file or similar. Might as well be writing typescript. 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.