UNPKG

409 BTypeScriptView Raw
1import { SECRET_INTERNAL_getScopeContext as getScopeContext } from 'jotai';
2import { 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 {};
7declare type Awaited<T> = T extends Promise<infer V> ? V : T;
\No newline at end of file