@empathyco/x-components
Version:
Empathy X Components
14 lines • 634 B
TypeScript
import { ComputedRef } from 'vue';
import { Dictionary } from '@empathyco/x-utils';
import { ExtractState, XModuleName } from '../x-modules/x-modules.types';
/**
* Function which returns the requested state's properties as a dictionary.
*
* @param module - The {@link XModuleName} of the getter.
* @param paths - List of state paths.
* @returns The requested state properties of the module.
*
* @public
*/
export declare function useState<Module extends XModuleName, Path extends keyof ExtractState<Module> & string>(module: Module, paths: Path[]): Dictionary<ComputedRef>;
//# sourceMappingURL=use-state.d.ts.map