@empathyco/x-components
Version:
Empathy X Components
16 lines (9 loc) • 1.08 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [NamespacedWireDispatchPayload](./x-components.namespacedwiredispatchpayload.md)
## NamespacedWireDispatchPayload type
Namespaced payload to dispatch an action. Either a function that receives the [module state and getters](./x-components.storemodulestateandgetters.md) and returns the payload for the action, or a static action payload.
**Signature:**
```typescript
export type NamespacedWireDispatchPayload<ModuleName extends XModuleName, ActionName extends ActionNamesFor<ModuleName>> = ExtractActionPayload<ModuleName, ActionName> | ((wiringData: NamespacedWiringData<ModuleName>) => ExtractActionPayload<ModuleName, ActionName>);
```
**References:** [XModuleName](./x-components.xmodulename.md)<!-- -->, [ActionNamesFor](./x-components.actionnamesfor.md)<!-- -->, [ExtractActionPayload](./x-components.extractactionpayload.md)<!-- -->, [NamespacedWiringData](./x-components.namespacedwiringdata.md)