UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

6 lines 361 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getReducer = void 0; const getReducer = (initialState, actionHandlers) => (state = initialState, action) => actionHandlers.hasOwnProperty(action.type) ? actionHandlers[action.type](state, action) : state; exports.getReducer = getReducer; //# sourceMappingURL=getReducer.js.map