nrgy
Version:
The library for reactive programming using efficient computing and MVC/MVVM patterns
19 lines (7 loc) • 591 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});
var _chunk4OYRW4HCcjs = require('./chunk-4OYRW4HC.cjs');
// src/store/index.ts
function pipeStateMutations(mutations) {
return (state) => mutations.reduce((nextState, mutation) => mutation(nextState), state);
}
exports.createStore = _chunk4OYRW4HCcjs.createStore; exports.createStoreUpdates = _chunk4OYRW4HCcjs.createStoreUpdates; exports.declareStateUpdates = _chunk4OYRW4HCcjs.declareStateUpdates; exports.declareStore = _chunk4OYRW4HCcjs.declareStore; exports.pipeStateMutations = pipeStateMutations;