championswimmer / vuex-module-decorators

TypeScript/ES7 Decorators to create Vuex modules declaratively
https://championswimmer.in/vuex-module-decorators/
MIT License
1.8k stars 170 forks source link

[Documentation] Reference to "this" missing? #237

Open rowild opened 4 years ago

rowild commented 4 years ago

I am new to all this Typescript with Vue, so I am unsure, if this is at all right.

However, the getter example https://championswimmer.in/vuex-module-decorators/pages/core/getters.html throws an error like:

Cannot find name 'wheels'. Did you mean the instance member 'this.wheels'?
FullPint commented 4 years ago

It should be get axles() { return this.wheels / 2 }

rowild commented 4 years ago

@FullPint Thanks for your feedback! I just had a look at the repo and saw that the markdown file actually has proper code in place since March 2019: https://github.com/championswimmer/vuex-module-decorators/blob/master/docs/pages/core/getters.md

I wonder why it does not display...?