Using the latest 2.1 release, the below TypeScript
getCollection().then(
col => console.log(col.id),
err => console.log(err.toString())
);
results in the below emitted JavaScript
getCollection().then(function (col) { return console.log(col.id); }, function (err) { return console.log(err.toString()); });
This makes setting breakpoints a pain in the resulting code. It would be nice if the formatting was preserved.
Using the latest 2.1 release, the below TypeScript
results in the below emitted JavaScript
This makes setting breakpoints a pain in the resulting code. It would be nice if the formatting was preserved.