type error of defineComponent's second generic param related to EmitsOptions #12673
Open
Description
Vue version
latest ( 3.5.13 )
Link to minimal reproduction
Steps to reproduce
- open the reproduction link
- check the
Comp.tsx
What is expected?
pass the type check of EmitOptions with the named tuple syntax
What is actually happening?
- type error when using
named tuple syntax
ctx.emit
has corresponding types and type safe
System Info
No response
Any additional comments?
refer to Type-only props/emit declarations
The named tuple syntax
can work, but the function syntax
can't. Should they all be supported?