UNPKG

jotai

Version:

👻 Next gen state management that will spook you

5 lines • 423 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)>; declare type Awaited<T> = T extends Promise<infer V> ? V : T;