Howto pass generic type to ref<ComponentExposed<typeof SomeComponent>>()
like <!-- @vue-generic {MyType}-->
in template?
#5502
Answered
by
KazariEX
FragsterAt
asked this question in
Q&A
-
In my case exposed data has generic type.
In scoped slots I can define concrete type with magic comment With How can I get correct type of exposed data with |
Beta Was this translation helpful? Give feedback.
Answered by
KazariEX
Jul 17, 2025
Replies: 1 comment 1 reply
-
If you use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FragsterAt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use
useTemplateRef
you will automatically get the correct exposed type without having to explicitly fill in the type parameter.