Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix redeclaration of @vue/runtime-core. #1881

Merged
merged 2 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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