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 GitHub
parent cfadca3c66
commit e52dff0596
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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,