UNPKG

@dabapps/roe

Version:

A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.

14 lines (13 loc) 435 B
export declare type StoreListener = (state: StoreState) => void; export declare class Store { private state; private listeners; constructor(initialState?: StoreState); setState: (state: StoreState) => void; getState: () => StoreState; subscribe: (listener: StoreListener) => (() => void); private createUnsubscriber; useState: () => StoreState; } declare const _default: Store; export default _default;