title: Export not found on module
body: <p>I have a library, in one of the files i export an interface:</p>
  
  <pre><code>export interface MyInterface {
  ...
  }
  </code></pre>
  
  <p>and there is a default export, which is a react component.</p>
  
  <p>On an <code>index.ts</code> file, I import few stuff, and re-export them:</p>
  
  <pre><code>import Something from "./Something";
  import OtherStuff from "./OtherStuff";
  import ExportDefault, { MyInterface } from "./QuestionFile";
  
  export { Something, OtherStuff, ExportDefault, MyInterface };
  </code></pre>
  
  <p>When I compile, I get an error:</p>
  
  <blockquote>
    <p>MyInterface is not exported by QuestionFile.</p>
  </blockquote>
  
  <p>My goal is, whoever imports my library is able to import that type definition to use too.</p>
  
  <p>Is there a better way to do that?</p>
  
  <p>if I do:</p>
  
  <p><code>export * from "./QuestionFile"</code></p>
  
  <p>it works, otherwise it breaks my build.</p>
  
  <p>An example on what is going on can be found on this repository: <a href="https://github.com/PlayMa256/typescript-babel-error" rel="noreferrer">https://github.com/PlayMa256/typescript-babel-error</a></p>