UNPKG

gulp-este-bare

Version:

Gulp task to set an Este.js project to a bare state

17 lines (13 loc) 350 B
import {Map} from 'immutable'; import {bindActionCreators} from 'redux'; const actions = []; export default function mapDispatchToProps(dispatch) { const creators = Map() .merge(...actions) .filter(value => typeof value === 'function') .toObject(); return { actions: bindActionCreators(creators, dispatch), dispatch }; }