fix(typing): Remove re-export of the Promise built-in type.
Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468
This commit is contained in:
@ -16,7 +16,6 @@ import {provide} from 'angular2/src/core/di';
|
||||
|
||||
import {CONST_EXPR, stringify, IS_DART} from 'angular2/src/facade/lang';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {Promise} from 'angular2/src/facade/async';
|
||||
|
||||
import {ChangeDetectionCompiler} from 'angular2/src/compiler/change_detector_compiler';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {isPresent, global, StringWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
var evalCounter = 0;
|
||||
|
@ -25,7 +25,7 @@ import {
|
||||
isArray,
|
||||
IS_DART
|
||||
} from 'angular2/src/facade/lang';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {evalModule} from './eval_module';
|
||||
import {StyleCompiler} from 'angular2/src/compiler/style_compiler';
|
||||
import {
|
||||
|
@ -13,7 +13,7 @@ import {
|
||||
beforeEachProviders
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Type, isPresent, isBlank, stringify, isString, IS_DART} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
MapWrapper,
|
||||
|
@ -10,7 +10,7 @@ import {
|
||||
it,
|
||||
} from 'angular2/testing_internal';
|
||||
import {MockXHR} from 'angular2/src/compiler/xhr_mock';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
|
@ -40,7 +40,6 @@ import {
|
||||
EventEmitter,
|
||||
ObservableWrapper,
|
||||
PromiseCompleter,
|
||||
Promise
|
||||
} from 'angular2/src/facade/async';
|
||||
|
||||
import {
|
||||
|
@ -1,6 +1,7 @@
|
||||
/// This file contains tests that make sense only in Dart
|
||||
library angular2.test.facade.async_dart_spec;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:angular2/testing_internal.dart';
|
||||
import 'package:angular2/src/facade/async.dart';
|
||||
|
||||
|
@ -17,7 +17,7 @@ import {ComponentRecognizer} from 'angular2/src/router/component_recognizer';
|
||||
|
||||
import {Route, Redirect} from 'angular2/src/router/route_config_decorator';
|
||||
import {parser} from 'angular2/src/router/url_parser';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
|
||||
|
||||
export function main() {
|
||||
|
@ -18,7 +18,6 @@ import {
|
||||
import {provide, Component, Injector, Inject, View} from 'angular2/core';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
Promise,
|
||||
PromiseWrapper,
|
||||
PromiseCompleter,
|
||||
EventEmitter,
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {provide, Component, View, Injector, Inject} from 'angular2/core';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
import {Router, RouterOutlet, RouterLink, RouteParams, RouteData, Location} from 'angular2/router';
|
||||
import {
|
||||
|
@ -10,7 +10,7 @@ import {
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Type, IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
import {RouteRegistry} from 'angular2/src/router/route_registry';
|
||||
|
@ -12,7 +12,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {SpyRouterOutlet} from './spies';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
import {Promise, PromiseWrapper, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {Router, RootRouter} from 'angular2/src/router/router';
|
||||
|
Reference in New Issue
Block a user