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 GitHub
parent 5f330ad025
commit 7339ee5dd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}) })
} }
``` ```