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?
![No description](https://cdn.answeroverflow.com/1246830144191074324/image.png)
![No description](https://cdn.answeroverflow.com/1246830144547459182/image.png)
4 Replies