Skip to content

Commit

Permalink
Fix redeclaration of @vue/runtime-core. (#1881)
Browse files Browse the repository at this point in the history
* Fix redeclaration of @vue/runtime-core.

* Minor. Remove debug things.
  • Loading branch information
m0ksem authored May 31, 2022
1 parent 549cbb3 commit 3bf292f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/components/va-dropdown/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const VaDropdownPlugin = defineVuesticPlugin(() => ({
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaDropdown: typeof vaDropdownPlugin

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/va-modal/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const VaModalPlugin = defineVuesticPlugin(() => ({
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaModal: ReturnType<typeof createVaModalPlugin>
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/va-toast/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -23,7 +23,7 @@ export const VaToastPlugin = defineVuesticPlugin(() => ({
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaToast: ReturnType<typeof createVaToastPlugin>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/services/color-config/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const ColorConfigPlugin = defineVuesticPlugin(() => ({
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaColorConfig: ReturnType<typeof createColorConfigPlugin>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/services/global-config/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const GlobalConfigPlugin = defineVuesticPlugin((config: GlobalConfig | un
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaConfig: ReturnType<typeof createGlobalConfig>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/vuestic-plugin/utils/global-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3bf292f

Please sign in to comment.