title: How to extract T from Promise<T>
body: <p>I've got use case where async function is declared with followup return type:</p>
  
  <pre><code>async function getNumber() {
    const {number} = await API_getNumber();
  
    return number;
  }
  
  export type Return = ReturnType&lt;typeof getNumber&gt;
  </code></pre>
  
  <p>here <code>Return</code> is <code>Promise&lt;number&gt;</code>. I then need to use this return type, but somehow only get <code>number</code> bit from it i.e. without promise. Is this possible to do?</p>