UNPKG

darian

Version:

A Naive state container for JavaScript apps

12 lines (9 loc) 262 B
import Store from "./Store"; import { actionT, reducerT, reduceTreeT } from "./type"; const createStore = (reducer: reducerT, action?: actionT) => { return new Store( reducer, action || {type: "init"}, ); }; export default createStore;