From 0db06b2555d0d4d66fd487843a572a59ab6de9b0 Mon Sep 17 00:00:00 2001 From: QQ Date: Wed, 11 Nov 2026 22:28:32 +0800 Subject: [PATCH] Import lib/types/client/store-hook.d.ts --- lib/types/client/store-hook.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/types/client/store-hook.d.ts diff --git a/lib/types/client/store-hook.d.ts b/lib/types/client/store-hook.d.ts new file mode 100644 index 0000000..83c2e22 --- /dev/null +++ b/lib/types/client/store-hook.d.ts @@ -0,0 +1,7 @@ +import type { ActionsDecl, StoreInstance } from '@deepseek-ai/dsh-client-store'; +/** + * Build a selector hook bound to one store instance. + * @param instance - the live store instance (snapshot source). + * @returns a `SnapshotSelectorHook`-compatible hook over that instance. + */ +export declare function createStoreHook>(instance: StoreInstance): (selector: (state: T) => S, eq?: (a: S, b: S) => boolean) => S;