Recommended place to put custom types
I am putting my custom type defs in the
/utils
directory. Is there a better place to put them? What do you do usually?5 Replies
I usually put them in
/types
, but I guess it's fine either way.Just to make sure, there is no auto-import for types yet? right?
Yeah, not currently
You can try this though, but I'm not sure if it will work https://stackoverflow.com/questions/72099348/how-to-add-global-interfaces-to-nuxt-project
Stack Overflow
How to add global interfaces to Nuxt project
I just started with Nuxt 3 and have been having some trouble with using typescript functionality.
I am trying to build a general NavBar that can have multiple buttons with different links. For this I
Its on typescript level then, not nuxt