dreamstate
Version:
Store management library based on react context and observers
1 lines • 422 B
JavaScript
import{DreamstateError as r}from"../core/error/DreamstateError.js";import{ActionsStore as o}from"../core/storing/ActionsStore.js";import{EDreamstateErrorCode as t}from"../types/error.js";import{isObject as e}from"./typechecking.js";function i(i){if(e(i))return new o(i);throw new r(t.INCORRECT_PARAMETER,"Actions store should be initialized with an object, got '".concat(typeof i,"' instead."))}export{i as createActions};