@empathyco/x-components
Version:
Empathy X Components
12 lines (7 loc) • 571 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [XActionContext](./x-components.xactioncontext.md) > [commit](./x-components.xactioncontext.commit.md)
## XActionContext.commit property
**Signature:**
```typescript
commit: (<MutationName extends PropsWithType<Mutations, () => void>>(mutation: MutationName) => void) & (<MutationName extends keyof Mutations>(mutation: MutationName, payload: ExtractPayload<Mutations[MutationName]>) => void);
```