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
The method exposed by the component, refer to the component in the template, you need to manually import the component in the script, add a type.
const myFormRef = ref<InstanceType<typeof MyForm>>() <template> <MyForm ref="myFormRef"/> </template>
Add a switch to option, automatically declare the instance type of a component in components.d.ts
// components.d.ts export interface GlobalComponents { MyForm: typeof import('./components/MyForm.vue')['default'] MyFormInstance: InstanceType<GlobalComponents['MyForm']> }
Maybe there's a more elegant way.
No response
The text was updated successfully, but these errors were encountered:
this solution cannot support with component with setup genric
Sorry, something went wrong.
No branches or pull requests
Clear and concise description of the problem
The method exposed by the component, refer to the component in the template, you need to manually import the component in the script, add a type.
Suggested solution
Add a switch to option, automatically declare the instance type of a component in components.d.ts

Maybe there's a more elegant way.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: