UNPKG

@empathyco/x-components

Version:
24 lines (15 loc) 1.88 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XActionContext](./x-components.xactioncontext.md) ## XActionContext interface Type safe Vuex [Action](https://vuex.vuejs.org/api/#actions) context, with the local types of the module. **Signature:** ```typescript export interface XActionContext<State extends Dictionary, Getters extends Dictionary, Mutations extends MutationsDictionary<Mutations>, Actions extends ActionsDictionary<Actions>> extends ActionContext<State, RootXStoreState> ``` **Extends:** ActionContext&lt;State, [RootXStoreState](./x-components.rootxstorestate.md)<!-- -->&gt; ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [commit](./x-components.xactioncontext.commit.md) | | (&lt;MutationName extends [PropsWithType](./x-components.propswithtype.md)<!-- -->&lt;Mutations, () =&gt; void&gt;&gt;(mutation: MutationName) =&gt; void) &amp; (&lt;MutationName extends keyof Mutations&gt;(mutation: MutationName, payload: [ExtractPayload](./x-components.extractpayload.md)<!-- -->&lt;Mutations\[MutationName\]&gt;) =&gt; void) | | | [dispatch](./x-components.xactioncontext.dispatch.md) | | (&lt;ActionName extends [PropsWithType](./x-components.propswithtype.md)<!-- -->&lt;Actions, () =&gt; any&gt;&gt;(action: ActionName) =&gt; [ExtractActionReturn](./x-components.extractactionreturn.md)<!-- -->&lt;Actions\[ActionName\]&gt;) &amp; (&lt;ActionName extends keyof Actions&gt;(action: ActionName, payload: [ExtractPayload](./x-components.extractpayload.md)<!-- -->&lt;Actions\[ActionName\]&gt;) =&gt; [ExtractActionReturn](./x-components.extractactionreturn.md)<!-- -->&lt;Actions\[ActionName\]&gt;) | | | [getters](./x-components.xactioncontext.getters.md) | | Getters | |