docs: type cast api plugin in custom usefetch example (#29756)

This commit is contained in:
Cruz 2024-11-02 06:43:57 -03:00 committed by Daniel Roe
parent 3223117811
commit d1fef1946b
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -77,7 +77,7 @@ export function useAPI<T>(
) {
return useFetch(url, {
...options,
$fetch: useNuxtApp().$api
$fetch: useNuxtApp().$api as typeof $fetch
})
}
```