UNPKG

220 BTypeScriptView Raw
1import type { Atom, Scope } from './atom';
2declare type Awaited<T> = T extends Promise<infer V> ? Awaited<V> : T;
3export declare function useAtomValue<Value>(atom: Atom<Value>, scope?: Scope): Awaited<Value>;
4export {};