UNPKG

208 BTypeScriptView Raw
1import type { Draft } from 'immer';
2import type { WritableAtom } from 'jotai';
3export declare function atomWithImmer<Value>(initialValue: Value): WritableAtom<Value, Value | ((draft: Draft<Value>) => void)>;