redux-security
Version:
26 lines (21 loc) • 561 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.actions = exports.types = undefined;
var _config = require('./config');
var types = exports.types = {
INSERT: _config.PREFIX + '/INSERT',
REMOVE: _config.PREFIX + '/REMOVE',
UPDATE: _config.PREFIX + '/UPDATE'
};
var action = function action(type) {
return function (payload) {
return { type: type, payload: payload };
};
};
var actions = exports.actions = {
insert: action(types.INSERT),
remove: action(types.REMOVE),
update: action(types.UPDATE)
};