Closed as not planned
Description
Vue version
3.5.0-alpha.2
Link to minimal reproduction
Steps to reproduce
See the html comments in the template of the Comp.vue component
What is expected?
That v-for="(value, key) in obj"
infers the actual type of key
and value
What is actually happening?
It infers the generic key type string | number | symbol
for objects. Also note that when calling Object.keys(config)[0]
the correct type is inferred
System Info
No response
Any additional comments?
This issue doesn't seem to be related to #9059
Workaround is to assert the type of the object in the v-for explicitly (this messes up syntax highlighting though):