3 ms·
The custom useFetch wrapper in Nuxt docs [1] will not allow autocomplete and type infers for APIs written with Nitro. I worked around it using type gymnastics.
by barishnamazov 3y ago
The custom useFetch wrapper in Nuxt docs [1] will not allow autocomplete and type infers for APIs written with Nitro. I worked around it using type gymnastics.
[1] https://nuxt.com/docs/examples/advanced/use-custom-fetch-composable https://nuxt.com/docs/examples/advanced/use-custom-fetch-com...