UNPKG

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