@empathyco/x-components
Version:
Empathy X Components
73 lines (34 loc) • 1.03 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [getGetterPath](./x-components.getgetterpath.md)
## getGetterPath() function
Generates a getter path string with the module and getter name.
**Signature:**
```typescript
export declare function getGetterPath<ModuleName extends XModuleName>(moduleName: ModuleName, getterName: keyof ExtractGetters<ModuleName>): string;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
moduleName
</td><td>
ModuleName
</td><td>
The module name the getter belongs to.
</td></tr>
<tr><td>
getterName
</td><td>
keyof [ExtractGetters](./x-components.extractgetters.md)<!-- --><ModuleName>
</td><td>
The getter name.
</td></tr>
</tbody></table>
**Returns:**
string
A string representing the getter path.