From 60c1eec047d951358cc6f49e2262c64015adfda7 Mon Sep 17 00:00:00 2001 From: eternalltruth <72864060+eternalltruth@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:46:44 +0800 Subject: [PATCH] docs: add additional type generics to `useFetch` docs (#22755) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李杰 --- docs/3.api/1.composables/use-fetch.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/3.api/1.composables/use-fetch.md b/docs/3.api/1.composables/use-fetch.md index bdfdab9af2..f25564539c 100644 --- a/docs/3.api/1.composables/use-fetch.md +++ b/docs/3.api/1.composables/use-fetch.md @@ -10,12 +10,12 @@ It automatically generates a key based on URL and fetch options, provides type h ## Type ```ts [Signature] -function useFetch( +function useFetch( url: string | Request | Ref | () => string | Request, options?: UseFetchOptions -): Promise> +): Promise> -type UseFetchOptions = { +type UseFetchOptions = { key?: string method?: string query?: SearchParams