title: How to build a type from enum values in TypeScript?
body: <p>Given the following:</p>
  
  <pre><code>enum FooKeys {
    FOO = 'foo',
    BAR = 'bar',
  }
  </code></pre>
  
  <p>I'd like to make an interface like this one, but instead of defining keys by hand, build it out of enum's values.</p>
  
  <pre><code>interface Foo {
    foo: string
    bar: string
  }
  </code></pre>
  
  <p>Is something like this possible with TypeScript?</p>
  
  <p>Thanks!</p>