-
-
Notifications
You must be signed in to change notification settings - Fork 597
Open
Milestone
Description
- I have searched through existing issues
Feature Request
Now, we can't support like:
import Vue, { PropType } from 'vue'
type Bar = 'cac' | 'oao'
interface Foo {
c: Bar
}
export default Vue.extends({
props: {
foo: { type: Object as PropType<Foo> },
bar: { type: String as PropType<Bar> }
}
})
I think we can try to analysis type recursive.
convert Foo to { c: 'cac' | 'oao' }
.
aki77, victorgarciaesgi, SnooHD, calebjacob, Dodje and 3 more