title: TypeScript compiler error on importation of Node module?
body: <p>I'm trying to use <a href="https://github.com/driverdan/node-XMLHttpRequest" rel="nofollow">this</a> but the compiler is producing the following:</p>
  
  <pre><code>Client.ts(2,5): error TS2134: Subsequent variable declarations must have the same type. 
  Variable 'XMLHttpRequest' must be of type '{ prototype: XMLHttpRequest; LOADING: number; 
  DONE: number; UNSENT: number; OPENED: number; HEADERS_RECEIVED: number; new(): 
  XMLHttpRequest; }', but here has type 'any'.
  </code></pre>
  
  <p>For reference the line producing the error is: </p>
  
  <pre><code>var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
  </code></pre>
  
  <p>Am I right in assuming that this is because node.d.ts doesn't have a definition for this module? If so how would I go about implementing the definition, the bit that has me confused is the <code>prototype</code> and <code>new()</code> having type <code>XMLHttpRequest</code>. Is this a recursive reference or will say an empty class declaration suffice?</p>