diff --git a/packages/ui/src/components/va-dropdown/plugin/index.ts b/packages/ui/src/components/va-dropdown/plugin/index.ts index ecc9c657dc..fee1c03e2e 100644 --- a/packages/ui/src/components/va-dropdown/plugin/index.ts +++ b/packages/ui/src/components/va-dropdown/plugin/index.ts @@ -21,7 +21,7 @@ export const VaDropdownPlugin = defineVuesticPlugin(() => ({ }, })) -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $vaDropdown: typeof vaDropdownPlugin diff --git a/packages/ui/src/components/va-modal/plugin/index.ts b/packages/ui/src/components/va-modal/plugin/index.ts index d1235a7aa4..ed1cbaf31e 100644 --- a/packages/ui/src/components/va-modal/plugin/index.ts +++ b/packages/ui/src/components/va-modal/plugin/index.ts @@ -15,7 +15,7 @@ export const VaModalPlugin = defineVuesticPlugin(() => ({ }, })) -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $vaModal: ReturnType } diff --git a/packages/ui/src/components/va-toast/plugin/index.ts b/packages/ui/src/components/va-toast/plugin/index.ts index 09cdc817c4..2d635367f3 100644 --- a/packages/ui/src/components/va-toast/plugin/index.ts +++ b/packages/ui/src/components/va-toast/plugin/index.ts @@ -1,4 +1,4 @@ -import { App } from 'vue' +import { App, ref } from 'vue' import { defineVuesticPlugin, defineGlobalProperty } from '../../../vuestic-plugin/utils' import { createToastInstance, closeById, closeAllNotifications, NotificationOptions } from '../toast' @@ -23,7 +23,7 @@ export const VaToastPlugin = defineVuesticPlugin(() => ({ }, })) -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $vaToast: ReturnType } diff --git a/packages/ui/src/services/color-config/plugin/index.ts b/packages/ui/src/services/color-config/plugin/index.ts index 3d16bd56d7..bb3df3ab23 100644 --- a/packages/ui/src/services/color-config/plugin/index.ts +++ b/packages/ui/src/services/color-config/plugin/index.ts @@ -9,7 +9,7 @@ export const ColorConfigPlugin = defineVuesticPlugin(() => ({ }, })) -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $vaColorConfig: ReturnType } diff --git a/packages/ui/src/services/global-config/plugin/index.ts b/packages/ui/src/services/global-config/plugin/index.ts index 787dcf15e9..5747ad8c29 100644 --- a/packages/ui/src/services/global-config/plugin/index.ts +++ b/packages/ui/src/services/global-config/plugin/index.ts @@ -16,7 +16,7 @@ export const GlobalConfigPlugin = defineVuesticPlugin((config: GlobalConfig | un }, })) -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $vaConfig: ReturnType } diff --git a/packages/ui/src/vuestic-plugin/utils/global-properties.ts b/packages/ui/src/vuestic-plugin/utils/global-properties.ts index 6e3dcf9328..04c463631b 100644 --- a/packages/ui/src/vuestic-plugin/utils/global-properties.ts +++ b/packages/ui/src/vuestic-plugin/utils/global-properties.ts @@ -7,7 +7,7 @@ export const extractGlobalProperties = (app: App) => app.config.globalProperties * Type safe set vue global property * Declare type before use this method. * ``` -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $vaThing: ThingType }