docs: ensure correct type for url in useFetch (#30531)

This commit is contained in:
Alex Liu 2025-01-11 01:47:12 +08:00 committed by Daniel Roe
parent f4e7e6bf36
commit bf34b7e5b8
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

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>>