я использую это:машинопись ошибка не имеет ни одного члена
/// <reference path="typings/jquery/jquery.d.ts" />
/// <reference path="typings/angularjs/angular.d.ts" />
/// <reference path="typings/angularjs/angular-animate.d.ts" />
/// <reference path="typings/angular-ui-router/angular-ui-router.d.ts" />
/// <reference path="typings/angular-ui-bootstrap/angular-ui-bootstrap.d.ts" />
/// <reference path="typings/angular-file-upload/angular-file-upload.d.ts" />
/// <reference path="typings/selectize/selectize.d.ts" />
я получаю ошибку, как это:
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'
как решить эту проблему? и в моей визуальной студии коде я получаю ошибку не экспортированного элемента «IPromise» Это мой код:
///<reference path="../all.ts" />
module Interface{
'use strict'
export interface IAccessService {
Login(PhoneNumber: string,
Password: string): ng.IPromise<any>;
Register(Email: string,
PhoneNumber : string,
Password: string,
RePassword: string,
Fullname: string,
BirthDate: Date,
Sex: string[]): ng.IPromise<any>;
GetTokenFromCookies(): string;
Put(token: string);
}
}