UNPKG

@mongez/react-atom

Version:

A simple state management tool for React Js.

11 lines 642 B
import { type AtomActions, type AtomCollectionActions, type AtomOptions, type AtomValue, type CollectionOptions } from "@mongez/atom"; import type { ReactAtom } from "./types"; /** * Create a new atom */ export declare function atom<Value = any, Actions extends AtomActions<Value> = AtomActions<Value>>(data: AtomOptions<AtomValue<Value>>): ReactAtom<Value, Actions>; /** * Create a react collection atom to work with arrays */ export declare function atomCollection<Value = any, Actions extends AtomCollectionActions<Value> = AtomCollectionActions<Value>>(options: CollectionOptions<Value>): any; //# sourceMappingURL=react-atom.d.ts.map