Analyze. Act. Achieve.
Kurinchilion KURINCHILION Analyze. Act. Achieve.

News

TypeScript: Accessors are only available when targeting ECMAScript 5 and higher.

Option 1: Execute in command line $ tsc -t es5 program.ts

Specify es5 as your target when you execute the program

Option 2: Setup via tsconfig.json

$ tsc --init (and ensure to see if the following settings are set under tsconfig.json) "target": "ES5", "module": "commonjs", "lib": ["DOM", "ES5"],

$ tsc --watch