UNPKG

329 BTypeScriptView Raw
1import type { WritableAtom } from 'jotai/vanilla';
2import { RESET } from './constants';
3type SetStateActionWithReset<Value> = Value | typeof RESET | ((prev: Value) => Value | typeof RESET);
4export declare function atomWithReset<Value>(initialValue: Value): WritableAtom<Value, [SetStateActionWithReset<Value>], void>;
5export {};
6
\No newline at end of file