title: ReturnType<typeof F> where F is a function that returns type Promise<T>
body: <p>I want to set the type of a variable to <code>T</code>.</p>
  
  <p>If <code>F</code> was a function that did NOT return a promise and just returned an object of type <code>T</code>, I would just do something like this:
  <code>let x: ReturnType&lt;typeof F&gt;</code></p>
  
  <p>But <code>F</code> is a function that returns a <code>Promise&lt;T&gt;</code></p>
  
  <p>How can I do this?</p>