Open matsko opened 9 years ago
Typescript and ES6 allow for this:
var name = "matias"; var info = {name}; console.log(info); // { name: "matias" }
Is there anyway we can support like this for the dart side of things via ts2dart?
Yes. You'd need to add some code here to handle the appropriate SyntaxKind, and explicitly emit the properties.
SyntaxKind
However this code here looks as if we should already support them. What's the error you're getting?
Typescript and ES6 allow for this:
Is there anyway we can support like this for the dart side of things via ts2dart?