I installed typescript npm package:
npm install typescript
and ran
node_modules\.bin\tsc doodle.ts -t ES3
Where doodle.ts
has:
var test = document.querySelector('.test');
It echoed back the same in output doodle.js
.
How to configure it so in the output, I get:
var test = document.getElementsByClassName('.test')[0];
Shouldn't -t ES3
flag take care of such compatibility aspects?