mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
fix: use shared AsyncDataOptions
Co-authored-by: Tom Lienard <tom.lienrd@gmail.com>
This commit is contained in:
parent
eccd10645f
commit
6abab412ad
@ -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<NuxtApp>('nuxt-app')
|
||||
|
||||
@ -103,7 +103,7 @@ interface _NuxtApp {
|
||||
[key: string]: unknown
|
||||
|
||||
/** @internal */
|
||||
_asyncDataPromises: Record<string, Promise<any> & { strategy?: 'lazy' | 'blocking' | 'parallel' } | undefined>
|
||||
_asyncDataPromises: Record<string, Promise<any> & { strategy?: AsyncDataOptions<any>['strategy'] } | undefined>
|
||||
/** @internal */
|
||||
_asyncData: Record<string, {
|
||||
data: Ref<any>
|
||||
|
Loading…
Reference in New Issue
Block a user