@empathyco/x-components
Version:
Empathy X Components
14 lines (8 loc) • 774 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [NamespacedWireCommit](./x-components.namespacedwirecommit.md)
## NamespacedWireCommit interface
Namespaced type for the [wireCommit()](./x-components.wirecommit.md) which creates a wire with its payload associated. Possible ways for creating a wire that commits a mutation. 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 mutation.
**Signature:**
```typescript
export interface NamespacedWireCommit<ModuleName extends XModuleName>
```