mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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, {
|
return useFetch(url, {
|
||||||
...options,
|
...options,
|
||||||
$fetch: useNuxtApp().$api
|
$fetch: useNuxtApp().$api as typeof $fetch
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user