You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsetuplang="ts">// Now I have to import it manually// It would be great if auto-import covered this need as well.importMyComponentfrom'./components/MyComponent.vue';constmyComp=ref<InstanceType<typeofMyComponent>>();</script><template><my-componentref="myComp" /><button@click="myComp?.sayHi()">Say Hi</button></template>
Clear and concise description of the problem
Quite often there is a need to specify types for a component's ref variable.
To control behavior, such as a toggle, or receive some data.
Simplest example:
MyComponent.vue
App.vue
Current behavior

Project with reproduction here
Suggested solution
#562
Closed by author 🤷♂️
#527
Seems valid solution
Alternative
No response
Additional context
Related issue
unplugin/unplugin-auto-import#118
But it was closed without solution
Validations
The text was updated successfully, but these errors were encountered: