UNPKG

jotai

Version:

👻 Next gen state management that will spook you

12 lines • 495 B
import { 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 {}; declare type Awaited<T> = T extends Promise<infer V> ? V : T;