nucleux
Version:
Simple, atomic hub for all your React application's state management needs. No providers, no boilerplate, just state that works.
8 lines (7 loc) • 460 B
TypeScript
import { AtomInterface } from './Atom';
import { Store } from './Store';
import { StoreConstructable, StoreDefinition } from './types';
declare function isAtom<T>(obj: unknown): obj is AtomInterface<T>;
declare function generateStoreDefinition<S>(storeClass: StoreConstructable<S>): StoreDefinition<S>;
declare function getStoreProxy<S extends Store>(storeInstance: S, isServerSnapshot?: boolean): S;
export { generateStoreDefinition, getStoreProxy, isAtom };