title: Typescript: Enum from Interface keys
body: <p>I have an interface:</p>
  
  <pre><code>interface ISomething {
    red: string;
    blue: string;
    green: string;
  }
  </code></pre>
  
  <p>Is it possible to define Enum which will represent keys from the interface?</p>
  
  <p>I would like to get result like this:</p>
  
  <pre><code>enum SomethingKeys {
     red = "red",
     blue= "blue",
     green= "green",
  }
  </code></pre>
  
  <p>ps: I'm newbie in ts, sorry if the question isn't correct.</p>