Allow typescript generic extending partial to contain none of the optional fields
I am trying to define an input type to a function that may contain fields defined by a type Foo.
React & Typescript. Generic in children component
I’m creating a Form component and i have the following question.
How can i type the Input component to infer the Generic type from it’s parent?
Here is an example.