Howto pass generic type to ref<ComponentExposed<typeof SomeComponent>>()
like <!-- @vue-generic {MyType}-->
in template?
#5502
Unanswered
FragsterAt
asked this question in
Q&A
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.
-
In my case exposed data has generic type.
In scoped slots I can define concrete type with magic comment
<!-- @vue-generic {MyType}-->
With
const componentRef = ref<ComponentExposed<typeof SomeComponent>>()
componentRef.value.exposedValue
has generic type.How can I get correct type of exposed data with
ComponentExposed
or with some other variant?Beta Was this translation helpful? Give feedback.
All reactions