Skip to content

Instantly share code, notes, and snippets.

@diverted247
Created February 26, 2014 17:30
Show Gist options
  • Select an option

  • Save diverted247/9234325 to your computer and use it in GitHub Desktop.

Select an option

Save diverted247/9234325 to your computer and use it in GitHub Desktop.
TypeScript 1.0 Enum
enum foo {
A,
B,
C,
D
}
var foo;
(function (foo) {
foo[foo["A"] = 0] = "A";
foo[foo["B"] = 1] = "B";
foo[foo["C"] = 2] = "C";
foo[foo["D"] = 3] = "D";
})(foo || (foo = {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment