chore: import types from '#app' (#24418)

This commit is contained in:
Daniel Roe 2023-11-22 22:40:02 +00:00 committed by GitHub
parent 5085b76949
commit b8bfa60ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -27,7 +27,7 @@ import { useNitroApp } from '#internal/nitro/app'
// @ts-expect-error virtual file
import unheadPlugins from '#internal/unhead-plugins.mjs'
// eslint-disable-next-line import/no-restricted-paths
import type { NuxtPayload, NuxtSSRContext } from '#app/nuxt'
import type { NuxtPayload, NuxtSSRContext } from '#app'
// @ts-expect-error virtual file
import { appHead, appRootId, appRootTag } from '#internal/nuxt.config.mjs'
// @ts-expect-error virtual file

View File

@ -3,7 +3,7 @@ import { getCurrentInstance } from 'vue'
import type { RouteLocationNormalized, RouteLocationNormalizedLoaded, RouteRecordRedirectOption } from '#vue-router'
import { useRoute } from 'vue-router'
import type { NitroRouteConfig } from 'nitropack'
import type { NuxtError } from '#app/composables/error'
import type { NuxtError } from '#app'
export interface PageMeta {
[key: string]: unknown

View File

@ -13,8 +13,7 @@ import { isEqual, withoutBase } from 'ufo'
import type { PageMeta } from '../composables'
import type { RouteMiddleware } from '#app/composables/router'
import type { Plugin } from '#app/nuxt'
import type { Plugin, RouteMiddleware } from '#app'
import { defineNuxtPlugin, useRuntimeConfig } from '#app/nuxt'
import { clearError, showError, useError } from '#app/composables/error'
import { navigateTo } from '#app/composables/router'