title: typescript error has no member
body: <p>i use this :</p>
  
  <pre><code>/// &lt;reference path="typings/jquery/jquery.d.ts" /&gt;
  /// &lt;reference path="typings/angularjs/angular.d.ts" /&gt; 
  /// &lt;reference path="typings/angularjs/angular-animate.d.ts" /&gt; 
  /// &lt;reference path="typings/angular-ui-router/angular-ui-router.d.ts" /&gt; 
  /// &lt;reference path="typings/angular-ui-bootstrap/angular-ui-bootstrap.d.ts" /&gt; 
  /// &lt;reference path="typings/angular-file-upload/angular-file-upload.d.ts" /&gt;
  
  /// &lt;reference path="typings/selectize/selectize.d.ts" /&gt;
  </code></pre>
  
  <p>i get error like this : </p>
  
  <pre><code>Access/Interfaces.ts(5,52): error TS2305: Module 'ng' has no exported member 'IPromise'.
  Access/Interfaces.ts(6,123): error TS2305: Module 'ng' has no exported member 'IPromise'.
  bower_components/angular-ui-router/api/angular-ui-router.d.ts(31,38): error TS2304: Cannot find name 'IServiceProvider'.
  bower_components/angular-ui-router/api/angular-ui-router.d.ts(49,42): error TS2304: Cannot find name 'IServiceProvider'.
  bower_components/angular-ui-router/api/angular-ui-router.d.ts(82,63): error TS2304: Cannot find name 'IPromise'.
  typings/angularjs/angular-animate.d.ts(18,30): error TS2305: Module 'ng' has no exported member 'IAugmentedJQuery'.
  typings/angularjs/angular-animate.d.ts(19,30): error TS2305: Module 'ng' has no exported member 'IAugmentedJQuery'.
  typings/angularjs/angular-animate.d.ts(20,33): error TS2305: Module 'ng' has no exported member 'IAugmentedJQuery'.
  typings/angularjs/angular-animate.d.ts(21,36): error TS2305: Module 'ng' has no exported member 'IAugmentedJQuery'.
  typings/angularjs/angular-animate.d.ts(22,33): error TS2305: Module 'ng' has no exported member 'IAugmentedJQuery'.
  typings/angularjs/angular.d.ts(17,1): error TS2440: Import declaration conflicts with local declaration of 'ng'
  </code></pre>
  
  <p>how to solve this?
  and in my visual studio code i get error has no exported member 'IPromise'
  this is my code :</p>
  
  <pre><code>///&lt;reference path="../all.ts" /&gt;
  module Interface{
      'use strict'
       export interface IAccessService {
          Login(PhoneNumber: string, 
              Password: string): ng.IPromise&lt;any&gt;;
          Register(Email: string, 
              PhoneNumber : string,
              Password: string, 
              RePassword: string, 
              Fullname: string, 
              BirthDate: Date, 
              Sex: string[]): ng.IPromise&lt;any&gt;;
          GetTokenFromCookies(): string;
          Put(token: string);
      }
  }
  </code></pre>