w3-redux
Version:
redux and redux thunk tools
12 lines (11 loc) • 608 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDispatchTypes = void 0;
var getDispatchTypes = function (reducerCategory, reducerName) {
return {
setDispatchType: "".concat(reducerCategory.toUpperCase(), "/").concat(reducerName.toUpperCase(), "/SET"),
clearDispatchType: "".concat(reducerCategory.toUpperCase(), "/").concat(reducerName.toUpperCase(), "/CLEAR"),
customDispatchType: "".concat(reducerCategory.toUpperCase(), "/").concat(reducerName.toUpperCase(), "/CUSTOM"),
};
};
exports.getDispatchTypes = getDispatchTypes;