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
folder and import them with ~/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.2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Perfect. I'll give it a try. Thank you