UNPKG

347 BTypeScriptView Raw
1import { SECRET_INTERNAL_getScopeContext as getScopeContext } from 'jotai';
2import type { WritableAtom } from 'jotai';
3import { RESET } from './constants';
4type Scope = NonNullable<Parameters<typeof getScopeContext>[0]>;
5export declare function useResetAtom<Value>(anAtom: WritableAtom<Value, typeof RESET>, scope?: Scope): () => void;
6export {};