Typing a ComponentPublicInstance Returned from App.mount() #12590
Unanswered
kirkbaly
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say that I instantiate a new Vue app with a root component like so:
Is there a way to get the correct type of
componentInstance
based on the componentMyComponent
? Ideally, something likeInstanceType<typeof MyComponent>
, though that specifically does not work in this case. Or, alternatively, is there a way to access something on theComponentPublicInstance
that could be typed asInstanceType<typeof MyComponent>
?Beta Was this translation helpful? Give feedback.
All reactions