UNPKG

jotai

Version:

👻 Next gen state management that will spook you

4 lines • 262 B
import { Draft } from 'immer'; import { WritableAtom } from 'jotai'; export declare function atomWithImmer<Value>(initialValue: Value): WritableAtom<Value, Value | ((draft: Draft<Value>) => void)>; declare type Awaited<T> = T extends Promise<infer V> ? V : T;