@empathyco/x-components
Version:
Empathy X Components
16 lines (9 loc) • 1.09 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [NamespacedWireCommitPayload](./x-components.namespacedwirecommitpayload.md)
## NamespacedWireCommitPayload type
Namespaced payload to commit a mutation. Either a function that receives the [module state and getters](./x-components.storemodulestateandgetters.md) and returns the payload for the mutation, or a static action payload.
**Signature:**
```typescript
export type NamespacedWireCommitPayload<ModuleName extends XModuleName, MutationName extends MutationNamesFor<ModuleName>> = ExtractMutationPayload<ModuleName, MutationName> | ((wiringData: NamespacedWiringData<ModuleName>) => ExtractMutationPayload<ModuleName, MutationName>);
```
**References:** [XModuleName](./x-components.xmodulename.md)<!-- -->, [MutationNamesFor](./x-components.mutationnamesfor.md)<!-- -->, [ExtractMutationPayload](./x-components.extractmutationpayload.md)<!-- -->, [NamespacedWiringData](./x-components.namespacedwiringdata.md)