mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
docs: type cast api plugin in custom usefetch example (#29756)
This commit is contained in:
parent
5f330ad025
commit
7339ee5dd8
@ -77,7 +77,7 @@ export function useAPI<T>(
|
||||
) {
|
||||
return useFetch(url, {
|
||||
...options,
|
||||
$fetch: useNuxtApp().$api
|
||||
$fetch: useNuxtApp().$api as typeof $fetch
|
||||
})
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user