Unexpected "any" type when components with generics and combined emits. #3379
Labels
enhancement
New feature or request
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
When a component with generics(even they are not unused), and its generic type of defineEmits is combined by "&", the first-match's type of the first emit type will be "any" in the parent component if there aren't any other match which has the same type with it.
e.g.
The return type of update:modelValue in parent component is "any". If I change any other emits type to "string" or I change the position of update:modelValue in StoreEmits or PanelEmits, it would become "string".
Minimal repo
The text was updated successfully, but these errors were encountered: