title: Typescript how to extract nested type
body: <p>How do I extract the type of a nested property? For example say I have this type:</p>
  
  <pre><code>type Example = {
     nested: string,  // how do I infer string here
     other: string
  }
  </code></pre>
  
  <p>Such that I can extract out 'string' from Example.nested?</p>
  
  <p>I have <code>type myType = Pick&lt;Example, "nested"&gt;</code> and that provides <code>{ nested: string }</code>, but I want to infer the type of the property 'nested' (string, in this example) on that object. </p>