I am trying to run this code but it is giving me following errors:
Animal.ts(10,13): error TS1056: Accessors are only available when targeting ECMAS
In my case, I only needed to add the target.
tsc *.ts --target ES5 && node *.js