UNPKG

@empathyco/x-components

Version:
28 lines (16 loc) 844 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [useGetter](./x-components.usegetter.md) ## useGetter() function Function which returns the requested getters as a dictionary of getters. **Signature:** ```typescript export declare function useGetter<Module extends XModuleName, GetterName extends keyof ExtractGetters<Module> & string>(module: Module, getters: GetterName[]): Dictionary<ComputedRef>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | module | Module | The [XModuleName](./x-components.xmodulename.md) of the getter. | | getters | GetterName\[\] | List of getters names. | **Returns:** Dictionary&lt;ComputedRef&gt; The requested getters from the module.