How to get proper type support for imported custom elements? #5855
Unanswered
backfromexile
asked this question in
Q&A
Replies: 0 comments
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.
-
In my project I am using a bunch of custom elements from another package.
The library exports types that support an augmentation of HTMLElementTagNameMap. Die to the library allowing for a custom prefix thief library itself cannot augment the Tag name map.
However, In all cases I tried I don't get proper type support for props or events, Vue barely accepts the in tag itself.
The elements are defined as so for example
But this and any other augmentation I tried has no real effect.
How do I make type checking and autocompletion/intellisense work with custom elements when they are used in Vue?
Beta Was this translation helpful? Give feedback.
All reactions