<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ExtractMutationPayload](./x-components.extractmutationpayload.md)

## ExtractMutationPayload type

Returns the payload for a mutation given the module name and the mutation name.

**Signature:**

```typescript
export type ExtractMutationPayload<ModuleName extends XModuleName, MutationName extends MutationNamesFor<ModuleName>> = ExtractPayload<ExtractMutations<XModulesTree[ModuleName]>[MutationName]>;
```
**References:** [XModuleName](./x-components.xmodulename.md)<!-- -->, [MutationNamesFor](./x-components.mutationnamesfor.md)<!-- -->, [ExtractPayload](./x-components.extractpayload.md)<!-- -->, [ExtractMutations](./x-components.extractmutations.md)<!-- -->, [XModulesTree](./x-components.xmodulestree.md)

