UNPKG

jotai

Version:

👻 Next gen state management that will spook you

5 lines (4 loc) • 220 B
import type { Atom, Scope } from './atom'; declare type Awaited<T> = T extends Promise<infer V> ? Awaited<V> : T; export declare function useAtomValue<Value>(atom: Atom<Value>, scope?: Scope): Awaited<Value>; export {};