title: dynamically adding a property name to a typescript interface
body: <p>I have a constant: </p>
  
  <pre><code>const name = 'some/property';
  </code></pre>
  
  <p>I'd like to define an interface that uses name as a key for a property in a similar way to using it in an object declaration like so:</p>
  
  <pre><code>{[name]: 'Bob'}
  </code></pre>
  
  <p>I tried the following, but it seems that this is doing something else:</p>
  
  <pre><code>interface MyInterface {
    [name]: string;
  }
  </code></pre>
  
  <p>is dynamically defining property names supported in typescript?</p>