Skip to content

Commit

Permalink
chore: import types from '#app'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 22, 2023
1 parent 3f57de4 commit 17ff26e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt/src/core/runtime/nitro/renderer.ts
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/pages/runtime/composables.ts
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions packages/nuxt/src/pages/runtime/plugins/router.ts
Expand Up @@ -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'
Expand Down

0 comments on commit 17ff26e

Please sign in to comment.