UNPKG

@empathyco/x-components

Version:
16 lines (9 loc) 859 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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)