title: Import electron.BrowserWindow in TypeScript
body: <p>I'm trying to get electron (0.37) and typescript (1.8), with Typings, working properly. I'm having trouble with the import of BrowserWindow. In older examples it seems to be a seperate <code>require('browser-window')</code>, but in the current version its <code>electron.BrowserWindow</code>. </p>
  
  <p>following an example I found my TypeScript is:</p>
  
  <pre><code>import electron = require('electron');
  const BrowserWindow = electron.BrowserWindow;
  ...
  var mainWindow:BrowserWindow = new BrowserWindow({width: main_width, height: main_height});
  </code></pre>
  
  <p>Unfortunately WebStorm and its TypeScript compiler is complaining: "TS2304: Cannot find name BrowserWindow"; specifically at the variable declaration.  if I remove the type declaration from the variable, it works. </p>
  
  <pre><code>var mainWindow = new BrowserWindow({width: main_width, height: main_height});
  </code></pre>
  
  <p>...but this seems to defeat the purpose of typescript though?</p>
  
  <p>I've tried a few different ways around this, but cannot get it working properly. For instance, if I do: <code>import BrowserWindow = Electron.BrowserWindow</code> the compiler is happy, but the javascript fails because <code>Electron</code> (a typescript namespace) isn't defined. </p>
  
  <p>Admittedly I'm new to typescript. </p>