Skip to content

Commit

Permalink
fix: augment GlobalComponents in multiple vue modules (#20144)
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Guilbault <mathieuguilbault@mathieus-mbp.home>
  • Loading branch information
guibulator and Mathieu Guilbault authored Jul 16, 2024
1 parent 9969ebb commit bd1f63d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/vuetify/src/shims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ declare global {
}
}
}

interface _GlobalComponents {
// @generate-components
}
declare module 'vue' {
export type JSXComponent<Props = any> = { new (): ComponentPublicInstance<Props> } | FunctionalComponent<Props>
export interface GlobalComponents extends _GlobalComponents {}
}

declare module '@vue/runtime-dom' {
Expand All @@ -28,6 +31,7 @@ declare module '@vue/runtime-dom' {
export interface SVGAttributes {
$children?: VNodeChild
}
export interface GlobalComponents extends _GlobalComponents {}
}

declare module '@vue/runtime-core' {
Expand All @@ -43,8 +47,5 @@ declare module '@vue/runtime-core' {
export interface ComponentCustomProperties {
$vuetify: Vuetify
}

export interface GlobalComponents {
// @generate-components
}
export interface GlobalComponents extends _GlobalComponents {}
}

0 comments on commit bd1f63d

Please sign in to comment.