title: module 'ng' has no exported member 'ui' when using ui-router type definition for typescript
body: <p>I am trying to use this typescript definition file for <code>ui-router</code>:</p>
  
  <p><a href="https://github.com/borisyankov/DefinitelyTyped/blob/master/angular-ui/angular-ui-router.d.ts" rel="noreferrer">https://github.com/borisyankov/DefinitelyTyped/blob/master/angular-ui/angular-ui-router.d.ts</a></p>
  
  <p>Here is the code at the top of the definition file:</p>
  
  <pre><code>// Type definitions for Angular JS 1.1.5+ (ui.router module)
  // Project: https://github.com/angular-ui/ui-router
  // Definitions by: Michel Salib &lt;https://github.com/michelsalib&gt;
  // Definitions: https://github.com/borisyankov/DefinitelyTyped
  
  /// &lt;reference path="../angularjs/angular.d.ts" /&gt;
  
  declare module ng.ui {
  
      interface IState {
      ...
  </code></pre>
  
  <p>Here is how I am using it:</p>
  
  <pre><code>module MyModule
  {
      export class MyStateConfig
      {
          constructor(
              //                     -&gt; error on the word ng.ui on next line
              private $stateProvider: ng.ui.IStateProvider, 
              private $urlRouterProvider: ng.ui.IUrlRouterProvider
              ...)
          {
              this.$stateProvider.state(...
  </code></pre>
  
  <p>This was working in Visual Studio but now with WebStorm I get a message saying "</p>
  
  <blockquote>
    <p>module 'ng' has no exported member 'ui'</p>
  </blockquote>
  
  <p>Can someone give me advice on this. Is this something to do with a different module system with WebStorm?</p>