From 86afe81e83e9321c9f25be07fda619298d5ccd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 5 Jan 2024 17:22:53 +0100 Subject: [PATCH] chore: hide private option --- packages/nuxt/src/app/composables/asyncData.ts | 5 ----- packages/nuxt/src/app/composables/fetch.ts | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/nuxt/src/app/composables/asyncData.ts b/packages/nuxt/src/app/composables/asyncData.ts index 9ef3abaed0..d506d4b1e9 100644 --- a/packages/nuxt/src/app/composables/asyncData.ts +++ b/packages/nuxt/src/app/composables/asyncData.ts @@ -88,11 +88,6 @@ export interface AsyncDataOptions< * @default 'cancel' */ dedupe?: 'cancel' | 'defer' - /** - * Internally used by useFetch - * @private - */ - _useFetch?: boolean } export interface AsyncDataExecuteOptions { diff --git a/packages/nuxt/src/app/composables/fetch.ts b/packages/nuxt/src/app/composables/fetch.ts index cd183ef0dc..a91fa04ac5 100644 --- a/packages/nuxt/src/app/composables/fetch.ts +++ b/packages/nuxt/src/app/composables/fetch.ts @@ -144,6 +144,7 @@ export function useFetch< getCachedData, deep, watch: watch === false ? [] : [_fetchOptions, _request, ...(watch || [])], + // @ts-expect-error private method _useFetch: true }