Extracting `useFetch` return type
Is there a better way of extracting the type my server route is returning from a route in vue side of the app? When I do
nuxt is aware of what my server route returns and correctly types the
without having to manually retype it. I got to
and it works I guess but properties of
Everything still works,
nuxt is aware of what my server route returns and correctly types the
data. But I want to get the type a route returns somewhere else. For example to be used in a component defineProps if a parent was doing the fetching and component is expecting to receive itwithout having to manually retype it. I got to
and it works I guess but properties of
Tmp are all wrapped in SerializeObject<>, likeEverything still works,
Tmp['meta'] will be Record<string, string>[] but I'm wondering if there's a simpler way