diff --git a/docs/content/3.api/1.composables/use-async-data.md b/docs/content/3.api/1.composables/use-async-data.md index d6d407aa454..3703aac9971 100644 --- a/docs/content/3.api/1.composables/use-async-data.md +++ b/docs/content/3.api/1.composables/use-async-data.md @@ -18,19 +18,25 @@ function useAsyncData( type AsyncDataOptions = { server?: boolean lazy?: boolean - default?: () => DataT | Ref + default?: () => DataT | Ref | null transform?: (input: DataT) => DataT pick?: string[] watch?: WatchSource[] initialCache?: boolean } -type AsyncData = { - data: Ref +interface RefreshOptions { + _initial?: boolean +} + +type AsyncData = { + data: Ref pending: Ref - refresh: () => Promise - error: Ref + refresh: (opts?: RefreshOptions) => Promise + error: Ref } + + ``` ## Params