UNPKG

jotai

Version:

👻 Next gen state management that will spook you

5 lines (4 loc) • 362 B
import { Draft } from 'immer'; import { PrimitiveAtom, WritableAtom } from 'jotai'; export declare function withImmer<Value>(anAtom: PrimitiveAtom<Value>): WritableAtom<Value, Value | ((draft: Draft<Value>) => void)>; export declare function withImmer<Value>(anAtom: WritableAtom<Value, Value>): WritableAtom<Value, Value | ((draft: Draft<Value>) => void)>;