-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
Description
Vue version
3.4.24
Link to minimal reproduction
Steps to reproduce
interface Type {
deep: {
foo: any
}
}
defineProps<{
route: keyof Type['deep']
}>()
What is expected?
const __sfc__ = /*#__PURE__*/_defineComponent({
__name: 'App',
props: {
route: { type: String, required: true }
},
What is actually happening?
const __sfc__ = /*#__PURE__*/_defineComponent({
__name: 'App',
props: {
route: { type: Object, required: true }
},
System Info
No response
Any additional comments?
Last working version: 3.4.23
Possibly related:
5cef52a#diff-8d5ec7c83895d7e238b2db7d7ac5dca5470cfdde52e432d693c390cc52978d15R1643
#11132
Was broken in 3.4.24, since 3.4.27 works fine with the code below
defineProps<{
route: keyof Type
}>()
but doesn't work with keyof Type['deep']
Bobakanoosh