UNPKG

darian

Version:

A Naive state container for JavaScript apps

9 lines (8 loc) 236 B
import { actionT, reducerT } from "./type"; declare class Store { state: object; reducer: reducerT; constructor(reducer: reducerT, action: actionT); dispatch: (action: actionT) => object; } export default Store;