Open
Description
Describe the bug
I get TypeScript errors when trying to find a component that has a generic with findComponent
.
Steps to reproduce
I have made a minimal reproduction. Here a small component is created with a generic, called Select.vue
. I use the Select component in App.vue
.
- Open minimal reproduction
- You should now see
app.spec.ts
. This is the test file where the TypeScript errors occur. - Run
npm run type-check
in the terminal below the file editor. - You should now see two TypeScript errors.
I think the two errors are related. They are only thrown if the component has a generic.
Expected behaviour
It should not throw these errors. The findComponent
for the component with the generic, should return a VueWrapper
.
Actual behaviour
It somehow returns a WrapperLike
, instead of the expected VueWrapper
.