We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow the instruction, I added the definition of a global component
import { Component } from 'vue' interface MyPropTypes { /** * document content */ p: string } declare module 'vue' { export interface GlobalComponents { componentName: Component<MyPropTypes> } } export { }
In the vue template, it cannot have correct intellisense hint for this component, but if I change it to DefineComponent
import { DefineComponent } from 'vue' declare module 'vue' { export interface GlobalComponents { componentName: DefineComponent<MyPropTypes> } } export { }
it works, whereas the code navigation is wrong.
<template> <my-component :p="xxx" /> </template>
Go to definition not work for p (it works if I use Component), and it cannot show the document of it.
p
The text was updated successfully, but these errors were encountered:
Please wait for vuejs/core#3656.
Sorry, something went wrong.
No branches or pull requests
Follow the instruction, I added the definition of a global component
In the vue template, it cannot have correct intellisense hint for this component,
but if I change it to DefineComponent
it works, whereas the code navigation is wrong.
Go to definition not work for
p
(it works if I use Component), and it cannot show the document of it.The text was updated successfully, but these errors were encountered: