docs: add clarity to useFetch parameter signature (#28993)

This commit is contained in:
Nishant Aanjaney Jalan 2024-09-14 17:53:06 +05:30 committed by GitHub
parent f7c68ac0f6
commit f4198d8ad9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,7 +147,7 @@ If you have not fetched data on the server (for example, with `server: false`),
```ts [Signature] ```ts [Signature]
function useFetch<DataT, ErrorT>( function useFetch<DataT, ErrorT>(
url: string | Request | Ref<string | Request> | () => string | Request, url: string | Request | Ref<string | Request> | (() => string) | Request,
options?: UseFetchOptions<DataT> options?: UseFetchOptions<DataT>
): Promise<AsyncData<DataT, ErrorT>> ): Promise<AsyncData<DataT, ErrorT>>