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

Type is inferred as `{}` when all props are optional (target >= 3.5) #4704

Closed KazariEX closed 1 week ago

KazariEX commented 1 month ago

Vue - Official extension or vue-tsc version

2.0.28

VSCode version

1.92.0-insider

Vue version

3.5.0-beta.2

TypeScript version

5.5.4

System Info

No response

Steps to reproduce

image

What is expected?

N/A

What is actually happening?

N/A

Link to minimal reproduction

No response

Any additional comments?

No response

daflyinbed commented 2 weeks ago

I'm encountering a similar issue with TypeScript@5.6.2, vue-tsc@2.1.6, and Vue@3.5.4. The type is inferred as {} even though all props are required. Go back to vue@3.4.38 fixed my problem