I've created [this](https://stackoverflow.com/questions/30274789/javascript-beyond-property-accessors) (sort of auto getter and setter) for javaScript but I don't know how to implement this in typeScript

I want to make an Object Oriented version of that if that's possible.