UNPKG

@stencil/store

Version:

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

7 lines (6 loc) 288 B
import { ObservableMap } from './types'; 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 {};