(Obviously, I don't expect the second slot not be reported - I just decided to test both options)
I think that either (A) such slots should just be ignored or (B) the rule should require the presence of something like {[K in string]: () => unknown;} in defineSlots (although the intersections & are not recognized at this moment).
Checklist
Tell us about your environment
What did you do?
Hello!
vue/require-explicit-slots
reports on slots with dynamic names. Paste the following code on the rule page:(Obviously, I don't expect the second slot not be reported - I just decided to test both options)
I think that either (A) such slots should just be ignored or (B) the rule should require the presence of something like
{[K in string]: () => unknown;}
indefineSlots
(although the intersections&
are not recognized at this moment).What did you expect to happen?
What actually happened?
Repository to reproduce this issue