useFetch unknown type when fetching api routes
hej, I use useFetch to fetch api routes from /server/api directory and I wonder how should I handle the types?
Currently it's unknown like on the first screenshot. You can also see the api route that I'm fetching on the second screenshot.
Does nuxt provide autogenerated interface type based on api route return type that I can pass to useFetch<here>() or am I missing something perhaps?
4 Replies