How to add types to render function slots? #7906
Unanswered
ChrisGV04
asked this question in
Help/Questions
Replies: 2 comments 6 replies
-
Can you provide a minimum reproduction in sfc or repository😉? Thanks! |
Beta Was this translation helpful? Give feedback.
3 replies
-
I have the same problem, didn't found the solution :/ Maybe we need something like |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
I've been searching for a while but I just can't seem to find how to do this...
I have a component that I build using the
defineComponent
render function and I want to add multiple slots to that component. It looks something like this:Is there a way to explain to typescript that this component has a
highlights
named slot withcontent
as a scoped prop? I'm not getting the usual Intellisense when I use the component somewhere else:I know that If I add named slots on a SFC component, Volar correctly types the slots and I get Intellisense when I use that component somewhere else.
Beta Was this translation helpful? Give feedback.
All reactions