jotai
Version:
👻 Next gen state management that will spook you
11 lines (10 loc) • 547 B
TypeScript
import { Atom, WritableAtom } from 'jotai';
import { Scope } from '../core/atom';
interface 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 {};