I am running into an issue while trying to specify the APIBody type in the following manner: Property 'test' does not exist on type 'NonNullable<PickFrom<_ResT, KeysOf>>'. It seems like there is no straightforward way to define the return type of useFetch. This makes the whole process feel quite inconvenient...
type APIBody = {
test: string
}
const {data, error} = await useFetch<APIBody>("api_url here")
console.log(data.value.test) // Property 'test' does not exist on type 'NonNullable<PickFrom<_ResT, KeysOf<DataT>>>'.