@empathyco/x-components
Version:
Empathy X Components
28 lines (16 loc) • 844 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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<ComputedRef>
The requested getters from the module.