UNPKG

@rindo/store

Version:

Store is a lightweight shared state library by the RindoJS core team. Implements a simple key/value map that efficiently re-renders components when necessary.

7 lines (6 loc) 302 B
import { ObservableMap } from './types'; declare type Invocable<T> = T | (() => T); export declare const createObservableMap: <T extends { [key: string]: any; }>(defaultState?: Invocable<T>, shouldUpdate?: (newV: any, oldValue: any, prop: keyof T) => boolean) => ObservableMap<T>; export {};