docs: fix options type in custom useFetch recipe (#28389)

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,