title: Typescript Vuex - How to define a state with a setter and getter?
body: <p>In the vuex store I want to initialize a state called _token. When I'm trying to access the property within the same class, it gives me the error message that the setter for _token is not defined. Anyone has an idea why only the getter is available?</p>
  
  <pre><code>export default class Api extends VuexModule {
    public _token = '';
  
    @Action
    public async [VuexActionsApi.VerifyUser](data: any): Promise&lt;IResponseState&gt; {
      const vuexInstance = this;
  
      // this is not working
      vuexInstance._token = "test";
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/b43wE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b43wE.png" alt="log output"></a></p>