@rxflow/base
Version:
BaseFlow - 核心 Flow 组件库
13 lines • 525 B
TypeScript
/**
* @author: yanxianliang
* @date: 2025-07-24 09:36
* @modified:2025/7/24 09:36 by yanxianliang
* @desc: 获取内置的状态
*
* <U>(selector: (state: ExtractState<S>) => U): U;
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
*/
import { BaseStateType, ExtractState } from "../..";
import type { StoreApi } from "zustand/vanilla";
export declare function useSelector<Store extends BaseStateType, U>(selector: (state: ExtractState<StoreApi<Store>>) => U): U;
//# sourceMappingURL=useSelector.d.ts.map