UNPKG

jotai

Version:

👻 Next gen state management that will spook you

3 lines • 222 B
import { Atom } from 'jotai/vanilla'; export declare function unwrap<Value>(anAtom: Atom<Promise<Value>>, defaultValue: Awaited<Value>): Atom<Awaited<Value>>; declare type Awaited<T> = T extends Promise<infer V> ? V : T;