nrgy
Version:
The library for reactive programming using efficient computing and MVC/MVVM patterns
19 lines (17 loc) • 380 B
JavaScript
import {
createStore,
createStoreUpdates,
declareStateUpdates,
declareStore
} from "./chunk-6EESSQRU.js";
// src/store/index.ts
function pipeStateMutations(mutations) {
return (state) => mutations.reduce((nextState, mutation) => mutation(nextState), state);
}
export {
createStore,
createStoreUpdates,
declareStateUpdates,
declareStore,
pipeStateMutations
};