Skip to content

Commit

Permalink
fix: Augment GlobalComponents in multiple vue modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Guilbault committed Jul 11, 2024
1 parent 437fbce commit 8235dec
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 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,6 @@ declare module '@vue/runtime-core' {
export interface ComponentCustomProperties {
$vuetify: Vuetify
}

export interface GlobalComponents {
// @generate-components
}
export interface GlobalComponents extends _GlobalComponents {}
}
https://github.com/nuxt/nuxt/pull/26541

0 comments on commit 8235dec

Please sign in to comment.