-
-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 2: looping over slots as a variable causes error TS2345 #4025
Comments
Could you please provide a reproduction without using vuetify's types? Thanks in advance. |
Can be closed. Not reproduce without import Vuetify types |
Sorry I don't mean that. I mean you can copy and simplify vuetify's types and inline them to this SFC. Anyway I'll debug locally. |
I think the bug is in the implementation of slot types in Vuetify. I'm not able to reproduce it when implementing a similar model to the one from Vuetify, because then the |
I'm also experiencing this as well. In the npm package |
Would you please check out this issue which also seems to address this problem that keeps coming and going. |
Use case:
Having a wrapper component, I want the parent to be able to populate the slots of the wrapped component.
Implementation:
Current behavior:
The use case is still possible to run with the same code prior to v2 of
vue-tsc
, but running thevue-tsc
command return the following error:Expected behavior:
Running
vue-tsc
should not throw an error.The text was updated successfully, but these errors were encountered: