Files
SnowLuma/.pnpm-store/v11/files/59/66e055cf7094acac1b87ed16e1f2db9a3234b45295977b885815302cd12c28af0d0b8e863e83f76f12f70b4b5d5da1d4015920483a9b74c860af0f0ac842fb
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

5 lines
268 B
Plaintext

import { AnyAtom } from '@tanstack/store';
export declare function useStore<TAtom extends AnyAtom | undefined, T>(atom: TAtom, selector: (snapshot: TAtom extends {
get: () => infer TSnapshot;
} ? TSnapshot : undefined) => T, compare?: (a: T, b: T) => boolean): T;