NuxtN
Nuxt6mo ago
4 replies
LordGhandi

Custom useFetch

I'm refactoring my custom use fetch since the api always returns a specific type if there is an error.
How can I specify when there is an error response from the api that it is of type MyApiErrorResponse or something else?
Was this page helpful?