UNPKG

jotai

Version:

👻 Next gen state management that will spook you

8 lines • 398 B
import { WritableAtom } from 'jotai/vanilla'; import { RESET } from './constants'; type SetStateActionWithReset<Value> = Value | typeof RESET | ((prev: Value) => Value | typeof RESET); export declare function atomWithReset<Value>(initialValue: Value): WritableAtom<Value, [ SetStateActionWithReset<Value> ], void>; export {}; declare type Awaited<T> = T extends Promise<infer V> ? V : T;