@tacky/store
Version:
State management framework based on react
8 lines (7 loc) • 369 B
TypeScript
import { Store, DispatchedAction } from '../interfaces';
import { Component } from 'react';
export declare let store: Store;
export declare function createStore(enhancer: (createStore: any) => Store): Store | {
dispatch: (action: DispatchedAction) => DispatchedAction | undefined;
subscribe: (listener: Function, uuid: Component<{}, {}, any>) => () => void;
};