jotai
Version:
👻 Next gen state management that will spook you
10 lines • 438 B
TypeScript
import { useAtomsSnapshot } from './useAtomsSnapshot';
type Scope = NonNullable<Parameters<typeof useAtomsSnapshot>[0]>;
type DevtoolsOptions = {
scope?: Scope;
enabled?: boolean;
};
export declare function useAtomsDevtools(name: string, options?: DevtoolsOptions): void;
export declare function useAtomsDevtools(name: string, scope?: Scope): void;
export {};
declare type Awaited<T> = T extends Promise<infer V> ? V : T;