@empathyco/x-components
Version:
Empathy X Components
16 lines (9 loc) • 859 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [ExtractActionPayload](./x-components.extractactionpayload.md)
## ExtractActionPayload type
Returns the payload for an action given the module name and the action name.
**Signature:**
```typescript
export type ExtractActionPayload<ModuleName extends XModuleName, ActionName extends ActionNamesFor<ModuleName>> = ExtractPayload<ExtractActions<XModulesTree[ModuleName]>[ActionName]>;
```
**References:** [XModuleName](./x-components.xmodulename.md)<!-- -->, [ActionNamesFor](./x-components.actionnamesfor.md)<!-- -->, [ExtractPayload](./x-components.extractpayload.md)<!-- -->, [ExtractActions](./x-components.extractactions.md)<!-- -->, [XModulesTree](./x-components.xmodulestree.md)