pano9000
useFetch loses type from /server/api after using getCachedData
Hi @Ne0n I am facing a similar issue, where with useFetch inside a component, I am not able to get proper typings - and I also stumbled across this InternalApi type (I think it was mentioned on StackOverflow?) -> but I am still running into issues:
Can I ask you, how you used the InternalApi successfully?
IWhat I am doing is:
however Typescript then infers the "data" variable to be of type "globalThis.Ref<any>" 😦
(sorry for threadjacking! but I seem to be in the same boat as you :-D)
3 replies