UNPKG

jotai

Version:

👻 Next gen state management that will spook you

12 lines (11 loc) • 428 B
import type { Atom, Scope } from '../core/atom'; declare type AnyAtomValue = unknown; declare type AnyAtom = Atom<AnyAtomValue>; declare type AtomsValues = Map<AnyAtom, AnyAtomValue>; declare type AtomsDependents = Map<AnyAtom, Set<AnyAtom>>; declare type AtomsSnapshot = Readonly<{ values: AtomsValues; dependents: AtomsDependents; }>; export declare function useAtomsSnapshot(scope?: Scope): AtomsSnapshot; export {};