DEV Community

Nawal Zairi
Nawal Zairi

Posted on

Answer: Accessors are only available when targeting ECMAScript 5 and higher

In Windows, the

tsc --target es5 filename.ts

options can be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'esnext'. (without '')

Top comments (0)