UNPKG

angular2

Version:

Angular 2 - a web framework for modern web apps

57 lines (56 loc) 2.39 kB
import { Locals } from './parser/locals'; import { BindingTarget, BindingRecord } from './binding_record'; import { DirectiveIndex, DirectiveRecord } from './directive_record'; import { ChangeDetectionStrategy } from './constants'; import { ChangeDetectorRef } from './change_detector_ref'; export declare class DebugContext { element: any; componentElement: any; directive: any; context: any; locals: any; injector: any; constructor(element: any, componentElement: any, directive: any, context: any, locals: any, injector: any); } export interface ChangeDispatcher { getDebugContext(elementIndex: number, directiveIndex: DirectiveIndex): DebugContext; notifyOnBinding(bindingTarget: BindingTarget, value: any): void; logBindingUpdate(bindingTarget: BindingTarget, value: any): void; notifyAfterContentChecked(): void; notifyAfterViewChecked(): void; } export interface ChangeDetector { parent: ChangeDetector; mode: ChangeDetectionStrategy; ref: ChangeDetectorRef; addContentChild(cd: ChangeDetector): void; addViewChild(cd: ChangeDetector): void; removeContentChild(cd: ChangeDetector): void; removeViewChild(cd: ChangeDetector): void; remove(): void; hydrate(context: any, locals: Locals, directives: any, pipes: any): void; dehydrate(): void; markPathToRootAsCheckOnce(): void; handleEvent(eventName: string, elIndex: number, locals: Locals): any; detectChanges(): void; checkNoChanges(): void; } export interface ProtoChangeDetector { instantiate(dispatcher: ChangeDispatcher): ChangeDetector; } export declare class ChangeDetectorGenConfig { genDebugInfo: boolean; logBindingUpdate: boolean; useJit: boolean; constructor(genDebugInfo: boolean, logBindingUpdate: boolean, useJit: boolean); } export declare class ChangeDetectorDefinition { id: string; strategy: ChangeDetectionStrategy; variableNames: string[]; bindingRecords: BindingRecord[]; eventRecords: BindingRecord[]; directiveRecords: DirectiveRecord[]; genConfig: ChangeDetectorGenConfig; constructor(id: string, strategy: ChangeDetectionStrategy, variableNames: string[], bindingRecords: BindingRecord[], eventRecords: BindingRecord[], directiveRecords: DirectiveRecord[], genConfig: ChangeDetectorGenConfig); }