title: How to reexport `*` from a module that uses `export =`
body: <p>I have a module <code>m</code>:</p>
  
  <pre><code>export = {
      a: 3
  }
  </code></pre>
  
  <p>And then in my <code>index.ts</code> I want to re-export everything that <code>m</code> is exporting, so I use:</p>
  
  <pre><code>export * from './m';
  </code></pre>
  
  <p>But it gives me an error:</p>
  
  <blockquote>
    <p><strong>Error:</strong> TS2498:Module <code>D:/Projects/typescript/m</code> uses <code>export =</code> and cannot be used with <code>export *</code>.</p>
  </blockquote>
  
  <p>How to re-export from a module that uses <code>export=</code> syntax? I have no control over the module with <code>export=</code> syntax.</p>