-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Support type generics for component typings #1395
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: