UNPKG

jotai

Version:

👻 Next gen state management that will spook you

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