UNPKG

547 BTypeScriptView Raw
1import type { Atom, WritableAtom } from 'jotai';
2import type { Scope } from '../core/atom';
3interface DevtoolOptions {
4 name?: string;
5 scope?: Scope;
6 enabled?: boolean;
7}
8export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, options?: DevtoolOptions): void;
9export declare function useAtomDevtools<Value, Result extends void | Promise<void>>(anAtom: WritableAtom<Value, Value, Result> | Atom<Value>, name?: string, scope?: Scope): void;
10export {};