There are apparently two main approaches to structuring apps that use Typescript, namely CommonJS modules and ES modules. Based on many many lines in the manual, this is a critical factor in how you write things and particularly how you import and export things like type aliases and interfaces which I expect to use.
If I was working in a team environment, I would simply find out how the rest of the team does things, then do the same. I aspire to join a development team somewhere when I have better skills but for the time being, I’m working entirely on my own, building my own apps. Which approach should I be using to build my own apps? I would strongly prefer to use whatever approach I’m most likely to find in teams building new apps, rather than those maintaining old code.
I’m building Vue 3 apps with Vuetify 3 and Pinia.