I\'m using tslint, and got the error.
\'myVariable\' is declared but its value is never read.
I went to the website that documents the rules
Another way to avoid this is to create a get-method for every variable you have, like this:
get variablename():variabletype{return this.variablename;}