UNPKG

jotai

Version:

👻 Primitive and flexible state management for React

6 lines (5 loc) • 329 B
import type { 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 {};