UNPKG

jotai

Version:

👻 Primitive and flexible state management for React

3 lines • 286 B
import type { Atom } from 'jotai/vanilla'; export declare function selectAtom<Value, Slice>(anAtom: Atom<Value>, selector: (v: Value, prevSlice?: Slice) => Slice, equalityFn?: (a: Slice, b: Slice) => boolean): Atom<Slice>; declare type Awaited<T> = T extends Promise<infer V> ? V : T;