UNPKG

jotai

Version:

👻 Primitive and flexible state management for React

3 lines • 208 B
import type { PrimitiveAtom } from 'jotai/vanilla'; export declare function atomWithLazy<Value>(makeInitial: () => Value): PrimitiveAtom<Value>; declare type Awaited<T> = T extends Promise<infer V> ? V : T;