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
I don't know if there is already a way to handle type generics for component typings but if not it could be a nice addition. The benefit would be improved typings overall when it comes to generic components, especially when you use emits options and later with the use type-aware template devtool (in IDEs)
Use-case:
Let's say I have a component to list items:
Right now I can do this
What problem does this feature solve?
I don't know if there is already a way to handle type generics for component typings but if not it could be a nice addition. The benefit would be improved typings overall when it comes to generic components, especially when you use emits options and later with the use type-aware template devtool (in IDEs)
Use-case:
Let's say I have a component to list items:
Right now I can do this
What does the proposed API look like?
With generics support it could be like that :
The text was updated successfully, but these errors were encountered: