vuejs / language-tools

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

dts emit file(.vue.d.ts) that has ts prompt error #4347

Closed vsdeeper closed 4 months ago

vsdeeper commented 4 months ago

version

"vue-tsc": "^2.0.16"

question

image The output dts file cannot use InstanceType normally, as follows: image

I looked at the dts files generated by earlier versions of vue-tsc and they are different, as follows: image The output dts file can use InstanceType normally, as follows: image

vsdeeper commented 4 months ago

version

"vue-tsc": "^2.0.16"

question

image The output dts file cannot use InstanceType normally, as follows: image

I looked at the dts files generated by earlier versions of vue-tsc and they are different, as follows: image The output dts file can use InstanceType normally, as follows: image

I found that this problem only occurs when automatically importing, globalThis is a global namespace, as long as automatic import is used in the project to generate auto-imports.d.ts, there should be no problem. Please close this issue.