UNPKG

jotai

Version:

👻 Next gen state management that will spook you

12 lines (11 loc) • 592 B
import { useAtom } from 'jotai'; import type { 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 {};