fix(typings): update test.typings for abstract superclasses

This commit is contained in:
Alex Eagle
2015-10-06 19:39:44 -07:00
committed by vsavkin
parent 6075509f26
commit 5458036de7
34 changed files with 122 additions and 71 deletions

View File

@ -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]),
];

View File

@ -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),

View File

@ -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';

View File

@ -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);

View File

@ -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) {

View File

@ -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';

View File

@ -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';

View File

@ -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 {

View File

@ -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.

View File

@ -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";
/**