Skip to content
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 @@ -44,7 +44,7 @@ export const VaModalPlugin = defineVuesticPlugin(() => ({
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaModal: ReturnType<typeof createVaModalPlugin>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/va-toast/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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/breakpoint/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const BreakpointConfigPlugin = defineVuesticPlugin(() => ({
},
}))

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

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/colors-classes/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const ColorsClassesPlugin = defineVuesticPlugin(() => ({
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaColorsClasses: ReturnType<typeof createColorHelpersPlugin>
}
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 @@ -21,7 +21,7 @@ export const GlobalConfigPlugin = defineVuesticPlugin((config: PartialGlobalConf
},
}))

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$vaConfig: ReturnType<typeof createGlobalConfig>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { setCurrentApp } from '../../current-app'
import { ColorsClassesPlugin } from '../../colors-classes'

// Declare all components globally
declare module '@vue/runtime-core' {
declare module 'vue' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface GlobalComponents extends VuesticComponents {}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/services/vue-plugin/types/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export type VuesticComponentName = keyof VuesticComponentsMap
* @example
* This will register all vuestic components globally:
* ```
* declare module '@vue/runtime-core' {
* declare module 'vue' {
* export interface GlobalComponents extends VuesticComponents {}
* }
* ```
*
* @example
* If you using tree-shaking and want to register only specific components:
* ```
* declare module '@vue/runtime-core' {
* declare module 'vue' {
* export interface GlobalComponents extends VuesticComponents<'VaButton' | 'VaInput'> {}
* }
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const extractGlobalProperties = (app: App | AppContext) => app.config.glo
* 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
Loading