UNPKG

@empathyco/x-components

Version:
92 lines (41 loc) 2.16 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 <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [commit](./x-components.xactioncontext.commit.md) </td><td> </td><td> (&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) </td><td> </td></tr> <tr><td> [dispatch](./x-components.xactioncontext.dispatch.md) </td><td> </td><td> (&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;) </td><td> </td></tr> <tr><td> [getters](./x-components.xactioncontext.getters.md) </td><td> </td><td> Getters </td><td> </td></tr> </tbody></table>