@empathyco/x-components
Version:
Empathy X Components
28 lines (16 loc) • 836 B
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
| Parameter | Type | Description |
| --- | --- | --- |
| moduleName | ModuleName | The module name the getter belongs to. |
| getterName | keyof [ExtractGetters](./x-components.extractgetters.md)<!-- --><ModuleName> | The getter name. |
**Returns:**
string
A string representing the getter path.