UNPKG

@empathyco/x-components

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