mattiagpg
Custom useAsyncData - $fetch TypeScript error🙏
Hello everybody,
I have followed the nuxt 3 guide to create a custom fetch client.
All seems to be right, but when I'm going to add TypeScript FetchError<CustomError> in useFetch, I receive this TypeScript error (I'm a TypeScript newbie):
I have just upload in StackBlitz: https://stackblitz.com/edit/github-hxq8kzk2?file=composables%2FuseApi.ts
I hope that someone can help me 🙏
Thank you guy!
5 replies