Closed
Description
Version
3.6.2
Steps to reproduce
import { defineComponent } from 'vue'
import VueRouter from 'vue-router'
declare const Foo : () => {
$props: {}
}
defineComponent({
components: {
// works well in both vue 2.7 and vue 3
Foo
},
})
new VueRouter({
routes: [
{
// Type '() => { $props: {}; }' is not assignable to type 'Component | undefined'.
component: Foo
}
]
})