From 6abab412ad9b5e5b06fde100cdb74945fbb215db Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 25 Jul 2023 09:49:35 +0100 Subject: [PATCH] fix: use shared `AsyncDataOptions` Co-authored-by: Tom Lienard --- packages/nuxt/src/app/nuxt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/app/nuxt.ts b/packages/nuxt/src/app/nuxt.ts index 7fdc68078f..069952286a 100644 --- a/packages/nuxt/src/app/nuxt.ts +++ b/packages/nuxt/src/app/nuxt.ts @@ -14,7 +14,7 @@ import type { RenderResponse } from 'nitropack' import type { NuxtIslandContext } from '../core/runtime/nitro/renderer' import type { RouteMiddleware } from '../../app' import type { NuxtError } from '../app/composables/error' -import type { AsyncDataRequestStatus } from '../app/composables/asyncData' +import type { AsyncDataOptions, AsyncDataRequestStatus } from '../app/composables/asyncData' const nuxtAppCtx = /* #__PURE__ */ getContext('nuxt-app') @@ -103,7 +103,7 @@ interface _NuxtApp { [key: string]: unknown /** @internal */ - _asyncDataPromises: Record & { strategy?: 'lazy' | 'blocking' | 'parallel' } | undefined> + _asyncDataPromises: Record & { strategy?: AsyncDataOptions['strategy'] } | undefined> /** @internal */ _asyncData: Record