UNPKG

jotai

Version:

👻 Next gen state management that will spook you

12 lines • 659 B
import { useAtom } from 'jotai'; import { Atom, WritableAtom } from 'jotai'; type Scope = NonNullable<Parameters<typeof useAtom>[1]>; 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;