title: Apply types in React ant design
body: <p>I am using Table from antd design. And, I want to type <code>onChange</code> function that is passed as param in Table component.</p>
  <pre><code>const change = (
    pagination: TablePaginationConfig,
    filters: Record&lt;string, Key[] | null&gt;,
    sorter: SorterResult&lt;RecordType&gt; | SorterResult&lt;RecordType&gt;[]
  ) =&gt; {};
  
  ReactDOM.render(
    &lt;Table onChange={change} columns={columns} dataSource={data} /&gt;,
    document.getElementById(&quot;container&quot;)
  );
  </code></pre>
  <p>The issue is that I can't import <code>RecordType</code>. How to type properly this code without using <code>any</code>? Here is a <a href="https://codesandbox.io/s/basic-usage-antd4150-forked-xk5sg?file=/index.tsx:1543-1837" rel="nofollow noreferrer">demo</a>.</p>