Allow possibility to provide typings for custom elements while consuming them in Vue Template #673
chintankavathia
started this conversation in
General
Replies: 1 comment 1 reply
-
declare module '@vue/runtime-dom' {
interface HTMLAttributes {
[key: string]: any
'v-permission'?: string
'v-loading'?: boolean
}
}
declare module '@vue/runtime-core' {
interface AllowedComponentProps {
'v-permission'?: string
'v-loading'?: boolean
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently when we use custom elements in Vue Template which are built outside of Vue. We don't get any typing support for these custom elements. In React we can do this by just extending
JSX IntrinsicElements
interface.I would expect that Vue should also provide such a way so that custom elements types can be provided and Vue Template can recognise them.
Beta Was this translation helpful? Give feedback.
All reactions