UNPKG

@coorpacademy/progression-engine

Version:

14 lines (13 loc) 456 B
import { getConfig } from './config'; import updateState from './update-state'; const createState = progression => { const engineConfig = getConfig(progression.engine); const config = { ...engineConfig, ...progression.engineOptions }; // $FlowFixMe: While waiting on a good solution to have a dummy initial State return updateState(config, {}, progression.actions); }; export default createState; //# sourceMappingURL=create-state.js.map