You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use a library that ship d.ts files for Vue.js components, using vite-plugin-dts, and I'm trying to do unit tests with findAllComponents function on a generic component, I have a TS error:
No overload matches this call.
If I put a @ts-ignore, the test is a success.
To Reproduce
Here is a link to reproduce the error. I put all the detail on how to reproduce the issue in the README
We have a WIP PR to have better types that should land shortly, so maybe this will fix your issue as well. You can track the progress of #2242, and check again when it is merged and released. If the issue persists, then we'll take a closer look 👍
I am running into this issue as well. In the current state, it is difficult to work with generic components. I see there is a WIP PR to handle this, but it hasn't had any activity in the last 7 months. Is there a timeline to handle this? If not, what is preventing this from getting solved?
Thank you, really appreciate the work being put into this library!
Describe the bug
When I use a library that ship
d.ts
files for Vue.js components, usingvite-plugin-dts
, and I'm trying to do unit tests withfindAllComponents
function on a generic component, I have a TS error:If I put a
@ts-ignore
, the test is a success.To Reproduce
Here is a link to reproduce the error. I put all the detail on how to reproduce the issue in the README
Expected behavior
No TS error.
Related information:
Additional context
The text was updated successfully, but these errors were encountered: