UNPKG

@empathyco/x-components

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