title: Reexport all typings inside a typescript .d.ts definition file
body: <p>Is there any way to reuse typings from one <code>.d.ts</code> file inside another <code>.d.ts file</code> to declare a module?</p>
  <p>For example lets say we have the following vendor file:</p>
  <p><em>node_modules/some-fancy-module/types.d.ts</em></p>
  <pre><code>  export const valueA: number;
    export const valueB: number;
  </code></pre>
  <p>Now in my project file I would like to declare that all <code>*.special-file</code> imports will return <code>valueA</code> and <code>valueB</code> as shown on <a href="https://www.typescriptlang.org/docs/handbook/modules.html" rel="nofollow noreferrer">https://www.typescriptlang.org/docs/handbook/modules.html</a>.</p>
  <p><em>typings.d.ts</em></p>
  <pre><code>declare module '*.special-file' {
    export * from 'some-fancy-module/types.d.ts';
  }
  </code></pre>
  <p>unfortunately I can't manage to use those typings:</p>
  <pre><code>import {valueA} from './my.special-file';
  </code></pre>
  <p><em>Error</em>: <code>Module '&quot;*.special-file&quot;' has no exported member 'valueA'</code></p>
  <p>Screenshot:</p>
  <p><a href="https://i.stack.imgur.com/wd2um.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wd2um.png" alt="codesandbox screenshot of the issue" /></a></p>
  <p>CodeSandbox as seen on the screenshot:
  <a href="https://codesandbox.io/s/reexport-types-5h8hb?file=/src/index.ts" rel="nofollow noreferrer">https://codesandbox.io/s/reexport-types-5h8hb?file=/src/index.ts</a></p>