This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Type that allows us to type component containers | |
* InjectedProps: The props injected by the container in the child component | |
* NeededProps: The Props the container needs that are not in the child component | |
* | |
* The InjectedProps object needs to be a subset of the ChildProps keys. | |
*/ | |
export type ContainerProps< | |
ChildProps, | |
InjectedKeys extends keyof Partial<ChildProps>, |