UNPKG

jotai

Version:

👻 Primitive and flexible state management for React

7 lines (6 loc) • 398 B
import type { Atom, ExtractAtomValue } from '../vanilla.js'; import { useStore } from './Provider.js'; type Options = Parameters<typeof useStore>[0]; export declare function useAtomValueRawSync<Value>(atom: Atom<Value>, options?: Options): Value; export declare function useAtomValueRawSync<AtomType extends Atom<unknown>>(atom: AtomType, options?: Options): ExtractAtomValue<AtomType>; export {};