UNPKG

jotai

Version:

👻 Next gen state management that will spook you

9 lines • 334 B
import { useStore } from 'jotai/react'; import { Atom } from 'jotai/vanilla'; type Options = Parameters<typeof useStore>[0]; export declare function useHydrateAtoms(values: Iterable<readonly [ Atom<unknown>, unknown ]>, options?: Options): void; export {}; declare type Awaited<T> = T extends Promise<infer V> ? V : T;