title: using typed hoc at untyped component
body: <p>I'm gradually moving my current react project into typescript.
  While doing that, I've met some strange situation.</p>
  
  <pre><code>// MyComponent.js
  import {someHoc} from 'recompose' // is typed by DefinitelyTyped.
  
  class MyComponent extends React.Component {
    ...
  }
  
  const component = someHoc(options)(MyComponent)
  export default component
  </code></pre>
  
  <p>When I imported <code>MyComponent</code> from a typed code, typescript check the Props of <code>MyComponent</code> and throw errors on type checking <code>someHoc</code></p>
  
  <ol>
  <li><p>Why they check type from JS module? I think tsc should not check the type of exported <code>component</code>, cause it is written on JS</p></li>
  <li><p>How can I suppress this error without converting <code>MyComponent</code> to typescript?</p></li>
  </ol>