diff --git a/src/index.ts b/src/index.ts index 66e3a6d2..d555ac18 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ import { install as navigationPlugin } from './plugins/navigation'; import { isKnownView, registerElement } from './registry'; import { setRootApp } from './runtimeHelpers'; -declare module '@vue/runtime-core' { +declare module 'vue' { interface App { start(): ComponentPublicInstance | undefined; mount( diff --git a/src/plugins/modals.ts b/src/plugins/modals.ts index 9a82d862..6b2fcb38 100644 --- a/src/plugins/modals.ts +++ b/src/plugins/modals.ts @@ -15,7 +15,7 @@ import { isObject } from '@vue/shared'; import { NSVElement, NSVRoot } from '../dom'; import { CreateNativeViewProps, createNativeView } from '../runtimeHelpers'; -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $showModal: ( component: Component

, diff --git a/src/plugins/navigation.ts b/src/plugins/navigation.ts index 5bea2885..67daac8f 100644 --- a/src/plugins/navigation.ts +++ b/src/plugins/navigation.ts @@ -3,7 +3,7 @@ import { App, Component, Ref, nextTick, unref } from '@vue/runtime-core'; import { NSVElement, NSVRoot } from '../dom'; import { CreateNativeViewProps, createNativeView } from '../runtimeHelpers'; -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { /** * todo: update docblock diff --git a/src/types.ts b/src/types.ts index ac19b112..bc3af5c6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,6 @@ import type { DefineComponent } from '@vue/runtime-core'; -declare module '@vue/runtime-core' { +declare module 'vue' { interface GlobalComponents { Frame: DefineComponent<{}>; Page: DefineComponent;