UNPKG

jotai

Version:

👻 Next gen state management that will spook you

4 lines (3 loc) • 222 B
import { Draft } from 'immer'; import { WritableAtom } from 'jotai'; export declare function withImmer<Value, Update extends Value>(anAtom: WritableAtom<Value, Update>): WritableAtom<Value, (draft: Draft<Value>) => void>;