Is there any way for a child component to infer the type of a parent?
Just say I have a parent and a child
<Parent data={someObject}>
<Child name={someString} /></Parent>
Where the Parent component sets up a provider based on the type of the data prop I would like to put a constraint on the name prop of the child component where is is to be a key of the type of the data prop passed into the parent.