UNPKG

@empathyco/x-components

Version:
14 lines (8 loc) 786 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [NamespacedWireDispatch](./x-components.namespacedwiredispatch.md) ## NamespacedWireDispatch interface Namespaced type for the [wireDispatch()](./x-components.wiredispatch.md) which creates a wire with its payload associated. Possible ways for creating a wire that dispatches an action. If a payload is passed, then the observable payload can be ignored, so the wire is applicable to any event. If no payload is passed, then the wire is only applicable to events with the same payload type than the action. **Signature:** ```typescript export interface NamespacedWireDispatch<ModuleName extends XModuleName> ```