title: Object is of type 'unknown' typescript generics
body: <p>I have a simple function that takes a function as it's argument and returns a new function. I get <code>Object is of type 'unknown'</code> when calling the returned function</p>
  <pre><code>const makeFunction = &lt;T&gt;(callback: (someParam: number, options: T) =&gt; any) =&gt; {
  
    return (options: T) =&gt; {
      const param = 4;
  
      return callback(param, options)  
    }  
  }
  </code></pre>
  <p>Above code is okay for typescript but when I am calling function I get complaint</p>
  <pre><code>makeFunction((param, options) =&gt; {
    const a = options.optionsValue //(parameter) options: unknown,  Object is of type 'unknown'
  })({optionsValue: 'some value'})
  </code></pre>