UNPKG

368 BTypeScriptView Raw
1import type { Draft } from 'immer';
2import type { PrimitiveAtom, WritableAtom } from 'jotai';
3export declare function withImmer<Value>(anAtom: PrimitiveAtom<Value>): WritableAtom<Value, Value | ((draft: Draft<Value>) => void)>;
4export declare function withImmer<Value>(anAtom: WritableAtom<Value, Value>): WritableAtom<Value, Value | ((draft: Draft<Value>) => void)>;