Last active
June 18, 2018 17:58
-
-
Save dagda1/bc75baed00a408857d010cc6bcd87b78 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| export type MapMapStateToProps<T, K extends keyof T, S> = MapStateToProps<Pick<T, K>, Exclude<T, K>, S>; | |
| // usage | |
| const mapStateToProps: MapMapStateToProps<MyComponentProps, 'someProp' | 'andAnother', State> = state => ({ | |
| someProp: selector(state), | |
| andAnother: anotherSelector(state) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment