Import lib/types/client/store-hook.d.ts
This commit is contained in:
parent
c4b3f2af59
commit
0db06b2555
|
|
@ -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<T, A extends ActionsDecl<T>>(instance: StoreInstance<T, A>): <S>(selector: (state: T) => S, eq?: (a: S, b: S) => boolean) => S;
|
||||
Loading…
Reference in New Issue