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 GitHub
parent b5beffc119
commit 7dba33500b
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]
function useFetch<DataT, ErrorT>(
url: string | Request | Ref<string | Request> | (() => string) | Request,
url: string | Request | Ref<string | Request> | (() => string | Request),
options?: UseFetchOptions<DataT>
): Promise<AsyncData<DataT, ErrorT>>