Skip to content

Instantly share code, notes, and snippets.

View amirgholikhani's full-sized avatar

Amir Gholikhani amirgholikhani

View GitHub Profile
@topherPedersen
topherPedersen / nestenum.ts
Created June 7, 2021 15:37
Nested "Enums" in TypeScript
enum Foo {
A = "ActivityCode.Foo.A",
B = "ActivityCode.Foo.B",
C = "ActivityCode.Foo.C",
}
enum Bar {
A = "ActivityCode.Bar.A",
B = "ActivityCode.Bar.B",
C = "ActivityCode.Bar.C",