( mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps, State>, )
| 3 | import type { MapStateToPropsParam } from './selectorFactory' |
| 4 | |
| 5 | export function mapStateToPropsFactory<TStateProps, TOwnProps, State>( |
| 6 | mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps, State>, |
| 7 | ) { |
| 8 | return !mapStateToProps |
| 9 | ? wrapMapToPropsConstant(() => ({})) |
| 10 | : typeof mapStateToProps === 'function' |
| 11 | ? // @ts-ignore |
| 12 | wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') |
| 13 | : createInvalidArgFactory(mapStateToProps, 'mapStateToProps') |
| 14 | } |
no test coverage detected
searching dependent graphs…