title: Typescript - Require generic type on function without parameter
body: <p>Is it possible to require a generic type on a function without parameters?</p>
  <p>Example:</p>
  <pre><code>function myFunc&lt;T&gt;() {
    return {} as T
  }
  
  const a = myFunc() // a: unknown
  </code></pre>
  <p>I want to make the generic type required, but couldn't find anything about it.</p>