title: How to group export members in Typescript?
body: <p>In my package, I have multiple dependencies. I am trying to create a single entry point for all dependencies.</p>
  <p><strong>Dependency 1</strong> (Exists in NPM)</p>
  <pre><code>export interface A {}
  export type B = {}
  export function C() {}
  </code></pre>
  <p><strong>Dependency 2</strong> (Exists in NPM)</p>
  <pre><code>export interface A {}
  export function B() {}
  </code></pre>
  <p><strong>Entry point</strong> (In my package)</p>
  <pre><code>export * as dependency1 from &quot;dependency-1&quot;
  export * as dependency2 from &quot;dependency-2&quot;
  </code></pre>
  <p>I have done this to avoid collision. But, the issue is when I try to access any <code>type</code> or <code>interface</code>, it doesn't work.</p>
  <p><strong>Consumer</strong></p>
  <pre><code>import { dependency1, dependency2 } from &quot;./entry&quot;;
  
  // works like a charm
  dependency1.C()
  
  // Shows error: &quot;A&quot; is not a property of `dependency1`
  const a1: dependency1.A = {...}
  
  // Shows error: &quot;A&quot; is not a property of `dependency2`
  const a2: dependency2.A = {...}
  </code></pre>
  <p>How do I resolve this? Any other alternative I can try?</p>
  <p><strong>tsconfig.json</strong></p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es5&quot;,
      &quot;lib&quot;: [
        &quot;dom&quot;,
        &quot;dom.iterable&quot;,
        &quot;esnext&quot;
      ],
      &quot;allowJs&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;strict&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;noFallthroughCasesInSwitch&quot;: true,
      &quot;module&quot;: &quot;esnext&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;resolveJsonModule&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;noEmit&quot;: true,
      &quot;jsx&quot;: &quot;react-jsx&quot;
    },
    &quot;include&quot;: [
      &quot;src&quot;
    ]
  }
  </code></pre>