title: Typing Vuex actions
body: <p>I am using Vue3 and Vuex4 with TS.</p>
  <p>Let's say my actions look like this in Vuex:</p>
  <pre><code> anAction: async (
      { commit, state }: { commit: Commit; state: MyStoreState },
      { parameter1, parameter2 }: { parameter1: string, parameter2: number }
    ) =&gt; {
      /* some code */
      commit(&quot;...&quot;, /* so on so forth */);
    },
  </code></pre>
  <p>I am using <code>mapActions</code> inside my components to use those actions:</p>
  <pre><code>/* rest of component code */
  methods: {
      ...mapActions(['anAction'])
  }
  </code></pre>
  <p>However, if I call <code>this.anAction</code> from any of my component code, this is its signature:</p>
  <pre><code>(...args: any[]) =&gt; Promise&lt;any&gt;
  </code></pre>
  <p>Is there a way to get the correct typing on the mapped action, i.e. the one I defined in my store?</p>