N
Nuxt2y ago
roga

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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
roga
rogaOP2y ago
Perfect. I'll give it a try. Thank you
Want results from more Discord servers?
Add your server