UNPKG

nucleux

Version:

Simple, atomic hub for all your React application's state management needs. No providers, no boilerplate, just state that works.

13 lines (12 loc) 419 B
import { StoreConstructable, StoreDefinition } from './types'; declare class Container { private static instance; private stores; constructor(); private instantiate; static getInstance(): Container; getStoreDefinition<S>(store: StoreConstructable<S>): StoreDefinition<S>; get<S>(store: StoreConstructable<S>): S; remove<S>(store: StoreConstructable<S>): boolean; } export { Container };