Skip to content

Instantly share code, notes, and snippets.

@odinserj
odinserj / foo.js
Created October 2, 2012 16:20 — forked from mvasilkov/foo.js
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();
@odinserj
odinserj / foo.js
Created October 2, 2012 16:11 — forked from mvasilkov/foo.js
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();