diff --git a/packages/bridge/src/runtime/app.ts b/packages/bridge/src/runtime/app.ts index 007c1ba63f6..ab810d0657c 100644 --- a/packages/bridge/src/runtime/app.ts +++ b/packages/bridge/src/runtime/app.ts @@ -1,7 +1,5 @@ import type { Hookable } from 'hookable' -// @ts-ignore -import type { Vue } from 'vue/types/vue' -import type { ComponentOptions } from 'vue' +import type { Vue, VueConstructor, ComponentOptions } from 'vue' import { defineComponent, getCurrentInstance } from './composables' export const isVue2 = true @@ -11,26 +9,11 @@ export const defineNuxtComponent = defineComponent export interface RuntimeNuxtHooks { } -export interface VueAppCompat { - component: Vue['component'], - config: { - globalProperties: any - [key: string]: any - }, - directive: Vue['directive'], - mixin: Vue['mixin'], - mount: Vue['mount'], - provide: (name: string, value: any) => void, - unmount: Vue['unmount'], - use: Vue['use'] - version: string -} - export interface NuxtAppCompat { nuxt2Context: Vue vue2App: ComponentOptions - vueApp: VueAppCompat + vueApp: VueConstructor globalName: string