diff --git a/docs/3.api/1.composables/use-async-data.md b/docs/3.api/1.composables/use-async-data.md index bf9923d4ebf7..da417f388618 100644 --- a/docs/3.api/1.composables/use-async-data.md +++ b/docs/3.api/1.composables/use-async-data.md @@ -28,19 +28,17 @@ type AsyncDataOptions = { immediate?: boolean } -interface RefreshOptions { - dedupe?: boolean -} - type AsyncData = { data: Ref pending: Ref - execute: () => Promise - refresh: (opts?: RefreshOptions) => Promise + refresh: (opts?: AsyncDataExecuteOptions) => Promise + execute: (opts?: AsyncDataExecuteOptions) => Promise error: Ref -} - +}; +interface AsyncDataExecuteOptions { + dedupe?: boolean +} ``` ## Params diff --git a/docs/3.api/1.composables/use-fetch.md b/docs/3.api/1.composables/use-fetch.md index 9541b15ad951..fd01733d7907 100644 --- a/docs/3.api/1.composables/use-fetch.md +++ b/docs/3.api/1.composables/use-fetch.md @@ -29,12 +29,16 @@ type UseFetchOptions = { watch?: WatchSource[] } -type AsyncData = { - data: Ref +type AsyncData = { + data: Ref pending: Ref - refresh: (opts?: { dedupe?: boolean }) => Promise - execute: () => Promise - error: Ref + refresh: (opts?: AsyncDataExecuteOptions) => Promise + execute: (opts?: AsyncDataExecuteOptions) => Promise + error: Ref +} + +interface AsyncDataExecuteOptions { + dedupe?: boolean } ```