UNPKG

jotai

Version:

👻 Next gen state management that will spook you

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