From b5cb98498a40cbd166ee7a5ec0ce240a06b46af5 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 15 Jan 2025 12:23:01 +0100 Subject: [PATCH] fix: global component types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See canonical source https://github.com/vuejs/language-tools/wiki/Global-Component-Types This was kind of hard to find, imho should be in vue docs itself… --- frontend/src/types/global-components.d.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/types/global-components.d.ts b/frontend/src/types/global-components.d.ts index 98585b5ae..cfc2d8727 100644 --- a/frontend/src/types/global-components.d.ts +++ b/frontend/src/types/global-components.d.ts @@ -7,11 +7,8 @@ import type Modal from '@/components/misc/Modal.vue' import type Card from '@/components/misc/Card.vue' // Here we define globally imported components -// See: -// https://github.com/johnsoncodehk/volar/blob/2ca8fd3434423c7bea1c8e08132df3b9ce84eea7/extensions/vscode-vue-language-features/README.md#usage -// Under the hidden collapsible "Define Global Components" - -declare module '@vue/runtime-core' { +// See: https://github.com/vuejs/language-tools/wiki/Global-Component-Types +declare module 'vue' { export interface GlobalComponents { Icon: FontAwesomeIconFixedTypes Notifications: FunctionalComponent