fix(typings): update test.typings for abstract superclasses
This commit is contained in:
@@ -39,6 +39,9 @@ import {ViewResolver} from './linker/view_resolver';
|
||||
import {DirectiveResolver} from './linker/directive_resolver';
|
||||
import {PipeResolver} from './linker/pipe_resolver';
|
||||
import {Compiler} from 'angular2/src/core/linker/compiler';
|
||||
import {DynamicComponentLoader_} from "./linker/dynamic_component_loader";
|
||||
import {AppViewManager_} from "./linker/view_manager";
|
||||
import {Compiler_} from "./linker/compiler";
|
||||
|
||||
/**
|
||||
* Constructs the set of bindings meant for use at the platform level.
|
||||
@@ -71,7 +74,7 @@ function _componentBindings(appComponentType: Type): Array<Type | Binding | any[
|
||||
return componentRef;
|
||||
});
|
||||
},
|
||||
[DynamicComponentLoader, Injector]),
|
||||
[bind(DynamicComponentLoader).toClass(DynamicComponentLoader_), Injector]),
|
||||
|
||||
bind(appComponentType)
|
||||
.toFactory((p: Promise<any>) => p.then(ref => ref.instance), [APP_COMPONENT_REF_PROMISE]),
|
||||
@@ -84,11 +87,12 @@ function _componentBindings(appComponentType: Type): Array<Type | Binding | any[
|
||||
*/
|
||||
export function applicationCommonBindings(): Array<Type | Binding | any[]> {
|
||||
return [
|
||||
Compiler,
|
||||
bind(Compiler)
|
||||
.toClass(Compiler_),
|
||||
APP_ID_RANDOM_BINDING,
|
||||
AppViewPool,
|
||||
bind(APP_VIEW_POOL_CAPACITY).toValue(10000),
|
||||
AppViewManager,
|
||||
bind(AppViewManager).toClass(AppViewManager_),
|
||||
AppViewManagerUtils,
|
||||
AppViewListener,
|
||||
ProtoViewFactory,
|
||||
@@ -98,7 +102,7 @@ export function applicationCommonBindings(): Array<Type | Binding | any[]> {
|
||||
bind(KeyValueDiffers).toValue(defaultKeyValueDiffers),
|
||||
DirectiveResolver,
|
||||
PipeResolver,
|
||||
DynamicComponentLoader,
|
||||
bind(DynamicComponentLoader).toClass(DynamicComponentLoader_),
|
||||
bind(LifeCycle).toFactory((exceptionHandler) => new LifeCycle_(null, assertionsEnabled()),
|
||||
[ExceptionHandler]),
|
||||
];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import {RuntimeCompiler_} from "./runtime_compiler";
|
||||
export {TemplateCompiler} from './template_compiler';
|
||||
export {
|
||||
CompileDirectiveMetadata,
|
||||
@@ -43,7 +44,7 @@ export function compilerBindings(): Array<Type | Binding | any[]> {
|
||||
.toValue(
|
||||
new ChangeDetectorGenConfig(assertionsEnabled(), assertionsEnabled(), false, true)),
|
||||
TemplateCompiler,
|
||||
RuntimeCompiler,
|
||||
bind(RuntimeCompiler).toClass(RuntimeCompiler_),
|
||||
bind(Compiler).toAlias(RuntimeCompiler),
|
||||
DomElementSchemaRegistry,
|
||||
bind(ElementSchemaRegistry).toAlias(DomElementSchemaRegistry),
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from './debug/debug_element';
|
||||
export {DebugElement, asNativeElements, By, Scope, inspectElement} from './debug/debug_element';
|
||||
export {inspectNativeElement, ELEMENT_PROBE_BINDINGS} from './debug/debug_element_view_listener';
|
||||
|
||||
@@ -40,7 +40,7 @@ export class NgClass implements DoCheck, OnDestroy {
|
||||
private _rawClass;
|
||||
|
||||
constructor(private _iterableDiffers: IterableDiffers, private _keyValueDiffers: KeyValueDiffers,
|
||||
private _ngEl: ElementRef_, private _renderer: Renderer) {}
|
||||
private _ngEl: ElementRef, private _renderer: Renderer) {}
|
||||
|
||||
set initialClasses(v) {
|
||||
this._applyInitialClasses(true);
|
||||
|
||||
@@ -66,7 +66,7 @@ export class NgStyle implements DoCheck {
|
||||
_rawStyle;
|
||||
_differ: KeyValueDiffer;
|
||||
|
||||
constructor(private _differs: KeyValueDiffers, private _ngEl: ElementRef_,
|
||||
constructor(private _differs: KeyValueDiffers, private _ngEl: ElementRef,
|
||||
private _renderer: Renderer) {}
|
||||
|
||||
set rawStyle(v) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Public API for Facade
|
||||
export {Type} from './facade/lang';
|
||||
export {ConcreteType, Type} from './facade/lang';
|
||||
export {Observable, EventEmitter} from './facade/async';
|
||||
export {Predicate} from './facade/collection';
|
||||
export {WrappedException} from './facade/exceptions';
|
||||
export {WrappedException} from './facade/exceptions';
|
||||
|
||||
@@ -33,8 +33,7 @@ import {ElementRef} from './element_ref';
|
||||
import {ProtoPipes} from 'angular2/src/core/pipes/pipes';
|
||||
import {camelCaseToDashCase} from 'angular2/src/core/render/dom/util';
|
||||
import {TemplateCmd} from './template_commands';
|
||||
import {ViewRef_} from "./view_ref";
|
||||
import {ProtoViewRef_} from "./view_ref";
|
||||
import {ViewRef_, ProtoViewRef_} from "./view_ref";
|
||||
|
||||
export {DebugContext} from 'angular2/src/core/change_detection/interfaces';
|
||||
|
||||
|
||||
@@ -4,13 +4,11 @@ import * as eli from './element_injector';
|
||||
import {isPresent, isBlank} from 'angular2/src/core/facade/lang';
|
||||
import * as viewModule from './view';
|
||||
import * as avmModule from './view_manager';
|
||||
import {ElementRef} from './element_ref';
|
||||
import {TemplateRef} from './template_ref';
|
||||
import {ElementRef, ElementRef_} from './element_ref';
|
||||
import {TemplateRef, TemplateRef_} from './template_ref';
|
||||
import {Renderer, RenderViewWithFragments} from 'angular2/src/core/render/api';
|
||||
import {Locals} from 'angular2/src/core/change_detection/change_detection';
|
||||
import {Pipes} from 'angular2/src/core/pipes/pipes';
|
||||
import {TemplateRef_} from "./template_ref";
|
||||
import {ElementRef_} from "./element_ref";
|
||||
|
||||
@Injectable()
|
||||
export class AppViewManagerUtils {
|
||||
|
||||
@@ -152,6 +152,8 @@ export interface RenderElementRef {
|
||||
renderView: RenderViewRef;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Index of the Element (in the depth-first order) inside the Render View.
|
||||
*
|
||||
* This index is used internally by Angular to locate elements.
|
||||
|
||||
@@ -3,9 +3,8 @@ import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {Map, MapWrapper, ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {CONST, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {NgZone} from '../zone/ng_zone';
|
||||
import {NgZone, NgZone_} from '../zone/ng_zone';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {NgZone_} from "../zone/ng_zone";
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,8 +12,7 @@ import {Map, MapWrapper, StringMapWrapper} from 'angular2/src/core/facade/collec
|
||||
|
||||
import {RouteHandler} from './route_handler';
|
||||
import {Url, RootUrl, serializeParams} from './url_parser';
|
||||
import {ComponentInstruction} from './instruction';
|
||||
import {ComponentInstruction_} from "./instruction";
|
||||
import {ComponentInstruction, ComponentInstruction_} from "./instruction";
|
||||
|
||||
class TouchMap {
|
||||
map: {[key: string]: string} = {};
|
||||
|
||||
@@ -57,6 +57,9 @@ import {APP_ID} from 'angular2/src/core/application_tokens';
|
||||
import {Serializer} from "angular2/src/web_workers/shared/serializer";
|
||||
import {Log} from './utils';
|
||||
import {compilerBindings} from 'angular2/src/core/compiler/compiler';
|
||||
import {DomRenderer_} from "../core/render/dom/dom_renderer";
|
||||
import {DynamicComponentLoader_} from "../core/linker/dynamic_component_loader";
|
||||
import {AppViewManager_} from "../core/linker/view_manager";
|
||||
|
||||
/**
|
||||
* Returns the root injector bindings.
|
||||
@@ -93,13 +96,13 @@ function _getAppBindings() {
|
||||
compilerBindings(),
|
||||
bind(ChangeDetectorGenConfig).toValue(new ChangeDetectorGenConfig(true, true, false, true)),
|
||||
bind(DOCUMENT).toValue(appDoc),
|
||||
DomRenderer,
|
||||
bind(DomRenderer).toClass(DomRenderer_),
|
||||
bind(Renderer).toAlias(DomRenderer),
|
||||
bind(APP_ID).toValue('a'),
|
||||
DomSharedStylesHost,
|
||||
bind(SharedStylesHost).toAlias(DomSharedStylesHost),
|
||||
AppViewPool,
|
||||
AppViewManager,
|
||||
bind(AppViewManager).toClass(AppViewManager_),
|
||||
AppViewManagerUtils,
|
||||
Serializer,
|
||||
ELEMENT_PROBE_BINDINGS,
|
||||
@@ -111,7 +114,7 @@ function _getAppBindings() {
|
||||
bind(IterableDiffers).toValue(defaultIterableDiffers),
|
||||
bind(KeyValueDiffers).toValue(defaultKeyValueDiffers),
|
||||
Log,
|
||||
DynamicComponentLoader,
|
||||
bind(DynamicComponentLoader).toClass(DynamicComponentLoader_),
|
||||
PipeResolver,
|
||||
bind(ExceptionHandler).toValue(new ExceptionHandler(DOM)),
|
||||
bind(LocationStrategy).toClass(MockLocationStrategy),
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import {LifeCycle} from 'angular2/angular2';
|
||||
import {ComponentRef} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {ComponentRef, ComponentRef_} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {isPresent, NumberWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {performance, window} from 'angular2/src/core/facade/browser';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {ComponentRef_} from "../core/linker/dynamic_component_loader";
|
||||
|
||||
/**
|
||||
* Entry point for all Angular debug tools. This object corresponds to the `ng`
|
||||
|
||||
@@ -7,8 +7,7 @@ import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptio
|
||||
import {EventEmitter} from 'angular2/src/core/facade/async';
|
||||
import {StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Injectable} from "angular2/src/core/di";
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
import {NgZone_} from "../../core/zone/ng_zone";
|
||||
import {NgZone, NgZone_} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
/**
|
||||
* A TypeScript implementation of {@link MessageBus} for communicating via JavaScript's
|
||||
|
||||
Reference in New Issue
Block a user