How do I export TypeScript Types for use elsewhere in Nuxt
I'd like to be able to auto-import types I declare somewhere (anywhere) and use them anywhere in my Nuxt app. Kind of like I do with components. Is there a way to throw them into a
types
types
folder and import them with
~/types
~/types
? Or better yet, have them auto import?
I'm still new to TypeScript. It wasn't something I was taught in school. Just picking up what I can as I go, so if I'm ignoring something super basic that I should know about typescript in Nuxt, that's probably why.