Add types Props<T>
, Events<T>
and Slots<T>
which provide types for components
#7259
Labels
has PR
A pull request has already been submitted to solve the issue
scope: types
✨ feature request
New feature or request
What problem does this feature solve?
In order to enhance Typescript support, I would like to easily be able to extract the props, event and slots which a component supports. This feature would be very useful for creating better developer tools.
What does the proposed API look like?
Consider the following component:
The proposed API would allow developers to do the following:
Currently, I am using the following definitions for
Props<T>
,Events<T>
andSlots<T>
but I think they are fragile and could be made better.The text was updated successfully, but these errors were encountered: