Skip to content

Instantly share code, notes, and snippets.

@mvasilkov
Created October 1, 2012 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mvasilkov/3814708 to your computer and use it in GitHub Desktop.
Save mvasilkov/3814708 to your computer and use it in GitHub Desktop.
TypeScript as a JS pretty print tool
/* Original code */
var s = 'foo.bar', im = new Image
im.src = s; s = im.src
console.log(s)
/* TypeScript output */
var s = 'foo.bar';
var im = new Image();
im.src = s;
s = im.src;
console.log(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment