Generic type that extracts component props
Im tring to make a generator function that extracts the props of a component and adds in some extra stuff. The code is pretty straight forward
This works as expected, where
props.props
is the properties of the InviteReader
component. Is there a way i can do this while avoiding the any
from EmailProps?3 Replies