title: Cannot assign a string value to typescript enum (Initializer type string not assignable to variable type)
body: <p>It seems that from TypeScript 2.4 onwards <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-4.html" rel="noreferrer">String Enums</a>  are a feature.</p>
  
  <p>However the following does not work:</p>
  
  <pre><code>enum Foo {
      A = "A",
      B = "B"
  }
  
  var foo : Foo = "A";
  </code></pre>
  
  <blockquote>
    <p>Initializer type string not assignable to variable type Foo</p>
  </blockquote>
  
  <p>String literals work:</p>
  
  <pre><code>type Foo = "A" | "B";
  </code></pre>
  
  <p>But what if I <strong>want</strong> to use an <code>enum</code>? Is there a way around this?</p>