馃 Typing named slots & autocompleltion? #265
Unanswered
jd-solanki
asked this question in
Q&A
Replies: 3 comments 5 replies
-
Will this work? defineSlots<{
title: undefined
}>() If I check component meta I do get title but I don't get autocompletion for slot names and don't get a warning/error for using slots that aren't defined. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I also tried this in a new project and still not getting autocompletion or errors. Do you want a reproduction, I just followed installation steps in new project creating using |
Beta Was this translation helpful? Give feedback.
0 replies
-
@sxzz I guess it's volar issue, is it? |
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
-
Hi,
For Anu, I want to type slots and want to extract slot object for other components. Thanks to you, we have
defineSlots
but how to define a slot that isn't scoped slot?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions