Disable slots using defineSlots
#14461
Unanswered
rtcpw
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.
-
I have a renderless component that does not use slots. I would like to specify that there are no slots using
defineSlots, so that TypeScript users can catch the error early if they specify a slot content. Is there a way to do this? This is what I want:In ComponentA:
In ComponentB:
Beta Was this translation helpful? Give feedback.
All reactions