UNPKG

jotai

Version:

👻 Primitive and flexible state management for React

9 lines (8 loc) • 467 B
import type { Atom, ExtractAtomValue } from '../vanilla.js'; import { useAtomValueRaw } from './useAtomValueRaw.js'; type Options = Parameters<typeof useAtomValueRaw>[1] & { unstable_promiseStatus?: boolean; }; export declare function useAtomValue<Value>(atom: Atom<Value>, options?: Options): Awaited<Value>; export declare function useAtomValue<AtomType extends Atom<unknown>>(atom: AtomType, options?: Options): Awaited<ExtractAtomValue<AtomType>>; export {};