lib/common/action-creators.js
function makeActionCreator(type) {
  for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    keys[_key - 1] = arguments[_key];
  }

  if (!type) throw new Error('Type cannot be null/undefined');
  return function () {
    for (var _len2 = arguments.length, values = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
      values[_key2] = arguments[_key2];
    }

    return generateAction({
      type: type
    }, keys, values);
  };
}
function makeActionCreator(type) {
  for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    keys[_key - 1] = arguments[_key];
  }

  if (!type) throw new Error('Type cannot be null/undefined');
  return function () {
    for (var _len2 = arguments.length, values = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
      values[_key2] = arguments[_key2];
    }

    return generateAction({
      type: type
    }, keys, values);
  };
}
Generate action creators based on input arguments. The first argument is always
treated as the Redux action type; all other passed arguments are treated
as property on the action object itself.

Example: const myActionType = 'DO_IT';
const doItAction = makeActionCreator(myActionType, 'data');
doItAction(123); --> { type: "DO_IT", data: 123 }

@param type
@returns {Function}