it should pull a list including 'welcome' and 'hello' and no need make declaration in props if use JSX/TSX
Whether using JSX or Vue, both of them have props infer, especially in JSX, we need to register the event in 'props' by hand , it's better if we can infer events from emits option
What problem does this feature solve?
register the emits option in child component, when using this component , after we input '@ ' , it should autocomplete
What does the proposed API look like?
type infer and autocomplement You can test here
it should pull a list including 'welcome' and 'hello' and no need make declaration in props if use JSX/TSX Whether using JSX or Vue, both of them have
props
infer, especially in JSX, we need to register the event in 'props' by hand , it's better if we can infer events from emits option