title: Using `Parameters<>` Type 'T' does not satisfy the constraint
body: <p>I'm trying to &quot;reexport&quot; interface of events to its function parameters:
  e.g</p>
  <pre><code>interface Events {
   init: (value: string) =&gt; boolean,
   end: (value: string, anotherValue: string) =&gt; void,
  }
  </code></pre>
  <p>Expected result:</p>
  <pre><code>interface EventsParams {
   init: [value: string],
   end: [value: string, anotherValue: string],
  }
  </code></pre>
  <p>What I'm doing:</p>
  <pre><code>import { Events } from './events';
  
  export declare type EventsParams = {
      [Property in keyof Events]: Parameters&lt;Events[Property]&gt;;
  };
  </code></pre>
  <p>it is working for me in &quot;dev&quot;, but in production I get:</p>
  <pre><code>error TS2344: Type 'Events[Property]' does not satisfy the constraint '(...args: any) =&gt; any'.
    Type '((value: string) =&gt; void) | ((value: string) =&gt; void) | ((value: string) =&gt; void) | ((value: string) =&gt; void) | ((value: string) =&gt; void) | ((value: string) =&gt; void) | ... 75 more ... | undefined' is not assignable to type '(...args: any) =&gt; any'.
      Type 'undefined' is not assignable to type '(...args: any) =&gt; any'.
       [Property in keyof Events]: Parameters&lt;Events[Property]&gt;;
  </code></pre>
  <p>What am I missing?</p>