title: Duplicate identifier error when referencing a node library using typescript
body: <p>I'm new to typescript and trying to start a hapi.js project but I'm getting an error when trying require('boom') in my code</p>
  
  <p><code>Duplicate identifier 'Boom'</code></p>
  
  <pre><code>/// &lt;reference path="../typings/tsd.d.ts" /&gt;
  
  var config = require('../config'),
      User = require('../models/user'),
      Boom = require('boom'),
      joi = require('joi');
  </code></pre>
  
  <p>my tsd.json</p>
  
  <pre><code>{
    "version": "v4",
    "repo": "borisyankov/DefinitelyTyped",
    "ref": "master",
    "path": "typings",
    "bundle": "typings/tsd.d.ts",
    "installed": {
      "node/node.d.ts": {
        "commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
      },
      "hapi/hapi.d.ts": {
        "commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
      },
      "bluebird/bluebird.d.ts": {
        "commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
      },
      "boom/boom.d.ts": {
        "commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
      },
      "pg/pg.d.ts": {
        "commit": "846a250e0a6f5e6adf6347ee4ca442a9d1abd8fc"
      }
    }
  </code></pre>
  
  <p>I've added both boom and hapi to my tsd - if hapi references boom as well does that cause some sort of circular error?</p>
  
  <p>How should I be referencing these libraries in typescript?</p>