I can't seem to get the -t / --target option to work. I have tried
and with other values like ES2016.
Each time tsc seems to do nothing other than put the contents of the .ts file into the .js file - without even an error message
Can someone explain what I am doing wrong?
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
The default is ES3.
In my last post I tried to show that when you use something in TypeScript where there is no translatable concept it may just get dropped. Other features like TypeScript enums for example, will get polyfilled with something functionally equivalent. For example: