Generate 'get' and 'set' accessors for TypeScript Use the generate 'get' and 'set' accessors refactoring in TypeScript to quickly encapsulate class properties. This is useful for both encapsulating fields and to customize the behavior of get/set.