It seems that from TypeScript 2.4 onwards String Enums are a feature.
However the following does not work:
enum Foo {
A = "A",
B = "B"
}
var foo : Foo = "A";
Initializer type string not assignable to variable type Foo
String literals work:
type Foo = "A" | "B";
But what if I want to use an enum? Is there a way around this?