1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-26 10:57:32 +00:00

docs: fix options type in custom useFetch recipe ()

This commit is contained in:
Mike Laumann Bellika 2024-08-13 17:39:40 +02:00 committed by Daniel Roe
parent cbeb97c7be
commit 14f2b5b31f
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -79,7 +79,7 @@ import type { UseFetchOptions } from 'nuxt/app'
export function useAPI<T>(
url: string | (() => string),
options: Omit<UseFetchOptions<T>, 'default'> & { default: () => T | Ref<T> },
options?: UseFetchOptions<T>,
) {
return useFetch(url, {
...options,