UNPKG

286 BTypeScriptView Raw
1import { Atom } from 'jotai';
2declare type Awaited<T> = T extends Promise<infer V> ? Awaited<V> : T;
3export declare function selectAtom<Value, Slice>(anAtom: Atom<Value>, selector: (v: Awaited<Value>) => Slice, equalityFn?: (a: Slice, b: Slice) => boolean): Atom<Slice>;
4export {};