Skip to content
New issue

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

auto import type of component #118

Closed
BhaskaranR opened this issue Jan 29, 2022 · 2 comments
Closed

auto import type of component #118

BhaskaranR opened this issue Jan 29, 2022 · 2 comments

Comments

@BhaskaranR
Copy link

BhaskaranR commented Jan 29, 2022

Greatly appreciate the work that you have done.

Types for the Components registered for auto import is not available globally. In this case ErrorModal is registered for auto-import I need the type of the element that i am trying to reference here. Cannot find name 'ErrorModal'

const errorModal = ref<InstanceType<typeof ErrorModal> | null>(null);

is there any fix for this?

@dammy001
Copy link
Contributor

dammy001 commented Apr 3, 2022

Can you reproduce this and provide a link?

@antfu
Copy link
Member

antfu commented May 24, 2022

#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants