<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest <code class="notranslate">xxxx/xxxx.d.ts</code> file in this repo and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>.  (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I want to talk about <code class="notranslate">xxxx/xxxx.d.ts</code>.
<ul dir="auto">
<li>The authors of that type definition are cc/ @....</li>
</ul>
</li>
</ul>
<p dir="auto">The type definitions are causing TS2300/Duplicate identifier errors due to collision with ES6. Exact output is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="514     bold(): string;
        ~~~~

node_modules/typescript/lib/lib.es6.d.ts(514,5): error TS2300: Duplicate identifier 'bold'.


109     bold: string;
        ~~~~

typings/globals/colors/index.d.ts(109,5): error TS2300: Duplicate identifier 'bold'."><pre class="notranslate"><code class="notranslate">514     bold(): string;
        ~~~~

node_modules/typescript/lib/lib.es6.d.ts(514,5): error TS2300: Duplicate identifier 'bold'.


109     bold: string;
        ~~~~

typings/globals/colors/index.d.ts(109,5): error TS2300: Duplicate identifier 'bold'.
</code></pre></div>
<p dir="auto">It appears that the tscparams file for this is preventing the error from appearing in the unit tests. According to the package's documentation, using the 'colors/safe' module would not override the string classes native methods and would do away with this error. But, as the definitions do not have this sub module, Typescript does not allow the import of 'colors/safe'.</p>
<p dir="auto">Hi,<br>
Getting the below exception with npm package @types/request-promise-native version 1.0.12, issue is not reproducible for previous versions. Could anyone look into this asap.<br>
node_modules/@types/request-promise-native/index.d.ts(20,49): error TS2694: Namespace 'request' has no exported member 'Response'.<br>
node_modules/@types/request-promise-native/index.d.ts(24,33): error TS2694: Namespace 'request' has no exported member 'Response'.</p>
<p dir="auto">Got the below code that is causing the error:<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/a436740d5ddaff62e522da2ae212031acb7ef935/types/request-promise-native/index.d.ts#L20">DefinitelyTyped/types/request-promise-native/index.d.ts</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 20
      in
      <a data-pjax="true" class="commit-tease-sha" href="/DefinitelyTyped/DefinitelyTyped/commit/a436740d5ddaff62e522da2ae212031acb7ef935">a436740</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L20" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="20"></td>
          <td id="LC20" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">transform</span>?<span class="pl-kos">(</span><span class="pl-s1">body</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">response</span>: <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-smi">Response</span><span class="pl-kos">,</span> <span class="pl-s1">resolveWithFullResponse</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">Thanks.</p>