<p dir="auto">I have two projects and each of them has <a href="https://github.com/borisyankov/DefinitelyTyped/blob/master/requirejs/require.d.ts">https://github.com/borisyankov/DefinitelyTyped/blob/master/requirejs/require.d.ts</a> file included. While compiling them with TS 1.4 I got 55 errors of "Duplicate identifier '[member_name]'".<br>
How I can eliminate this issue or at least switch it to a warning? Hope it is not by design.</p>
<p dir="auto">I am new to TypeScript, so I may be going about this entirely wrong, but I've got a scenario where implicit referencing is causing problems.</p>
<p dir="auto">In my project (Visual Studio 2013 Update 3), I have several Web pages. Each one has one reference to a script that contains general functionality for all pages and one reference to a script that contains specific functionality for the page in question. The general script calls several functions in the specific script, which requires that each of the specific scripts have certain function names in common. The fact that the scripts all implicitly reference each other is causing duplicate identifier errors on build.</p>
<p dir="auto">Here's a simplified example:</p>
<p dir="auto">Global.ts:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="window.onload = function () {
  getData();
}"><pre class="notranslate"><span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">onload</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-en">getData</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Page1.ts:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function getData() {
  //Get data relevant to Page1
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">getData</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-c">//Get data relevant to Page1</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Page2.ts:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function getData() {
  //Get data relevant to Page2
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">getData</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-c">//Get data relevant to Page2</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Obviously, I could change this to have one getData() function and pass a parameter indicating whether to get data for Page1 or Page2, but this is a very simplified example, and doing this for the entire project would be somewhat messy and harder to maintain. Is there a different way to approach this scenario or does anyone have a suggestion for "circumventing" the implicit referencing in TypeScript?</p>