vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.55k stars 373 forks source link

fix(language-core): use defineEmits calls instead of type infer #4430

Closed zhiyuanzmj closed 3 weeks ago

zhiyuanzmj commented 3 weeks ago

It will be a type error when I pass the compiled ts file to twoslash.

image
johnsoncodehk commented 3 weeks ago

LGTM, thanks!