fix: global component types
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…
This commit is contained in:
committed by
konrad
parent
70e027a84e
commit
b5cb98498a
7
frontend/src/types/global-components.d.ts
vendored
7
frontend/src/types/global-components.d.ts
vendored
@@ -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<Notifications>
|
||||
|
||||
Reference in New Issue
Block a user