title: Property name on object from variable
body: <p>Is there a way in typescript to set a property name from a variable?</p>
  
  <p>Something like this</p>
  
  <pre><code>export function objectFactory(prop: string) {
      return {
          prop: {
              valid: false
          }
      };
  }
  </code></pre>