sokore
Version:
Simple object based hook and state manager for React.
8 lines (7 loc) • 368 B
TypeScript
import { Kore, Koreko } from "./Kore";
export declare const storage: Map<string, {
kore: Kore<any, any>;
listeners?: Map<Function, (p: any, n: any) => void>;
}>;
export declare const _properInitdKoreko: unique symbol;
export declare function initKore<T, S, H extends (Kore<T, S> | Koreko<T, S>)>(koreClass: new (s?: T) => H, initial_value?: T | (() => T)): H;