@empathyco/x-components
Version:
Empathy X Components
16 lines (9 loc) • 886 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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)