UNPKG

jotai

Version:

👻 Next gen state management that will spook you

11 lines • 614 B
import { Atom, WritableAtom } from 'jotai'; import { Scope } from '../core/atom'; declare type DevtoolOptions = { name?: string; scope?: Scope; enabled?: boolean; }; export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, options?: DevtoolOptions): void; export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, name?: string, scope?: Scope): void; export {}; declare type Awaited<T> = T extends Promise<infer V> ? V : T;