title: Create an object from interface with keys and values - typescript
body: <p>Is there any way to create an object based on an interface which use the same keys and values?</p>
  <p>For example. I have following interface:</p>
  <pre><code>interface Person {
    name: string;
    age: number;
  }
  </code></pre>
  <p>and I would like to generate an object which looks like this:</p>
  <pre><code>const personFieldNames = {
    name: &quot;name&quot;,
    age: &quot;age&quot;,
  };
  </code></pre>