title: Duplicate identifier fetch in typescript
body: <p>Just starting out with Typescript. Made a simple project with a single index.ts file which i want to utilize <code>node-fetch</code>. So my code looks like</p>
  
  <h3>index.ts</h3>
  
  <pre><code>var fetch = require('node-fetch');
  fetch("https://www.google.com")
  </code></pre>
  
  <p>When running <code>tsc index.ts</code> i get the following</p>
  
  <p><code>../../../../.nvm/versions/node/v10.14.0/lib/node_modules/typescript/lib/lib.dom.d.ts:17778:18 - error TS2300: Duplicate identifier 'fetch'.</code></p>
  
  <h3>My understanding</h3>
  
  <p>Looks like the typescript module installed globally includes types for fetch. I have two questions with regards to this</p>
  
  <h3>Questions</h3>
  
  <ul>
  <li>a) How can I make it so that <code>tsc</code> only looks at my current directory downards for types?</li>
  <li>b) If i do nothing, what directories is <code>tsc</code> looking in in order to determines types?</li>
  <li>c) Any obvious flaws to my approach a) worth mentioning? </li>
  </ul>
  
  <p>EDIT: 
  I've also added <a href="https://www.npmjs.com/package/@types/node-fetch" rel="nofollow noreferrer">https://www.npmjs.com/package/@types/node-fetch</a> in hope it will take precedence but no joy</p>