UNPKG

225 BTypeScriptView Raw
1import type { WritableAtom } from 'jotai';
2import { RESET } from './constants';
3export declare function atomWithReset<Value>(initialValue: Value): WritableAtom<Value, typeof RESET | (Value | ((prev: Value) => Value)), void>;