From bd1f63dcfc57ef0b15b8cfd2847bd40ba7751a39 Mon Sep 17 00:00:00 2001 From: Mathieu Guilbault Date: Tue, 16 Jul 2024 14:54:01 -0400 Subject: [PATCH] fix: augment GlobalComponents in multiple vue modules (#20144) Co-authored-by: Mathieu Guilbault --- packages/vuetify/src/shims.d.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/vuetify/src/shims.d.ts b/packages/vuetify/src/shims.d.ts index ac4f3520636..12ab5fb90dc 100644 --- a/packages/vuetify/src/shims.d.ts +++ b/packages/vuetify/src/shims.d.ts @@ -16,9 +16,12 @@ declare global { } } } - +interface _GlobalComponents { + // @generate-components +} declare module 'vue' { export type JSXComponent = { new (): ComponentPublicInstance } | FunctionalComponent + export interface GlobalComponents extends _GlobalComponents {} } declare module '@vue/runtime-dom' { @@ -28,6 +31,7 @@ declare module '@vue/runtime-dom' { export interface SVGAttributes { $children?: VNodeChild } + export interface GlobalComponents extends _GlobalComponents {} } declare module '@vue/runtime-core' { @@ -43,8 +47,5 @@ declare module '@vue/runtime-core' { export interface ComponentCustomProperties { $vuetify: Vuetify } - - export interface GlobalComponents { - // @generate-components - } + export interface GlobalComponents extends _GlobalComponents {} }