Files
infocom-systems-design/node_modules/jotai/esm/react/useAtomValue.d.mts
2025-10-03 22:27:28 +03:00

10 lines
467 B
TypeScript

import type { Atom, ExtractAtomValue } from 'jotai/vanilla';
import { useStore } from './Provider.mjs';
type Options = Parameters<typeof useStore>[0] & {
delay?: number;
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 {};