How to use Virtual Components in Typescript? #17485
Unanswered
steveatkoan
asked this question in
Q&A
Replies: 2 comments 2 replies
-
yeah, i use vscode. i wonder is it even possible to provide editor support for virtual components? |
Beta Was this translation helpful? Give feedback.
0 replies
-
declare module '@vue/runtime-core' {
export interface GlobalComponents {
VBtnPrimary: typeof import('vuetify/components/VBtn')['VBtn']
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'd like to set up virtual components https://vuetifyjs.com/en/features/global-configuration/#using-with-virtual-components but WebStorm reports the component as an unknown tag in a Single File Component. How do I tell typescript / WebStorm the component exists?
Beta Was this translation helpful? Give feedback.
All reactions