From e058a10525518f0c290a2432172734b7596e5387 Mon Sep 17 00:00:00 2001 From: Jabin <37999218+JabinPeng@users.noreply.github.com> Date: Wed, 23 Aug 2023 19:09:52 +0800 Subject: [PATCH] docs: add additional type generics to `useAsyncData` (#22760) --- docs/3.api/1.composables/use-async-data.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/3.api/1.composables/use-async-data.md b/docs/3.api/1.composables/use-async-data.md index 169a8d6a51..6577e5c19c 100644 --- a/docs/3.api/1.composables/use-async-data.md +++ b/docs/3.api/1.composables/use-async-data.md @@ -12,15 +12,15 @@ Within your pages, components, and plugins you can use useAsyncData to get acces ## Type ```ts [Signature] -function useAsyncData( +function useAsyncData( handler: (nuxtApp?: NuxtApp) => Promise, options?: AsyncDataOptions -): AsyncData -function useAsyncData( +): AsyncData +function useAsyncData( key: string, handler: (nuxtApp?: NuxtApp) => Promise, options?: AsyncDataOptions -): Promise> +): Promise type AsyncDataOptions = { server?: boolean