Typescript check against ES5

This allows typescript checker to accept ES5 setters and getters.