chore(testing): upgrade ts-api-guardian to 0.1.3

This commit is contained in:
Jason Choi 2016-06-23 18:19:32 -07:00
parent 0ad1215a92
commit 42a5b6cbda
15 changed files with 709 additions and 698 deletions

View File

@ -5280,7 +5280,7 @@
"version": "1.0.0" "version": "1.0.0"
}, },
"ts-api-guardian": { "ts-api-guardian": {
"version": "0.1.2", "version": "0.1.3",
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
"version": "2.0.0" "version": "2.0.0"

39
npm-shrinkwrap.json generated
View File

@ -2867,7 +2867,8 @@
}, },
"lodash": { "lodash": {
"version": "4.13.1", "version": "4.13.1",
"from": "lodash@>=4.0.0 <5.0.0" "from": "lodash@4.13.1",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.13.1.tgz"
}, },
"readable-stream": { "readable-stream": {
"version": "2.0.6", "version": "2.0.6",
@ -2896,7 +2897,8 @@
}, },
"lodash": { "lodash": {
"version": "4.13.1", "version": "4.13.1",
"from": "lodash@>=4.2.1 <5.0.0" "from": "lodash@4.13.1",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.13.1.tgz"
}, },
"readable-stream": { "readable-stream": {
"version": "2.0.6", "version": "2.0.6",
@ -4394,15 +4396,18 @@
"dependencies": { "dependencies": {
"isarray": { "isarray": {
"version": "1.0.0", "version": "1.0.0",
"from": "isarray@>=1.0.0 <1.1.0" "from": "isarray@1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
}, },
"readable-stream": { "readable-stream": {
"version": "2.0.6", "version": "2.0.6",
"from": "readable-stream@>=2.0.0 <2.1.0" "from": "readable-stream@2.0.6",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
}, },
"through2": { "through2": {
"version": "2.0.1", "version": "2.0.1",
"from": "through2@>=2.0.0 <3.0.0" "from": "through2@2.0.1",
"resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz"
} }
} }
}, },
@ -4418,7 +4423,8 @@
"dependencies": { "dependencies": {
"isarray": { "isarray": {
"version": "1.0.0", "version": "1.0.0",
"from": "isarray@>=1.0.0 <1.1.0" "from": "isarray@1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
}, },
"lodash.escape": { "lodash.escape": {
"version": "4.0.0", "version": "4.0.0",
@ -4442,11 +4448,13 @@
}, },
"readable-stream": { "readable-stream": {
"version": "2.0.6", "version": "2.0.6",
"from": "readable-stream@>=2.0.0 <2.1.0" "from": "readable-stream@2.0.6",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
}, },
"through2": { "through2": {
"version": "2.0.1", "version": "2.0.1",
"from": "through2@>=2.0.0 <3.0.0" "from": "through2@2.0.1",
"resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz"
} }
} }
}, },
@ -7959,15 +7967,18 @@
"dependencies": { "dependencies": {
"isarray": { "isarray": {
"version": "1.0.0", "version": "1.0.0",
"from": "isarray@>=1.0.0 <1.1.0" "from": "isarray@1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
}, },
"readable-stream": { "readable-stream": {
"version": "2.0.6", "version": "2.0.6",
"from": "readable-stream@>=2.0.0 <2.1.0" "from": "readable-stream@2.0.6",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
}, },
"through2": { "through2": {
"version": "2.0.1", "version": "2.0.1",
"from": "through2@>=2.0.0 <2.1.0" "from": "through2@2.0.1",
"resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz"
} }
} }
}, },
@ -8407,9 +8418,9 @@
"resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.0.tgz" "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.0.tgz"
}, },
"ts-api-guardian": { "ts-api-guardian": {
"version": "0.1.2", "version": "0.1.3",
"from": "ts-api-guardian@0.1.2", "from": "ts-api-guardian@0.1.3",
"resolved": "https://registry.npmjs.org/ts-api-guardian/-/ts-api-guardian-0.1.2.tgz", "resolved": "https://registry.npmjs.org/ts-api-guardian/-/ts-api-guardian-0.1.3.tgz",
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
"version": "2.0.0", "version": "2.0.0",

View File

@ -106,7 +106,7 @@
"systemjs": "0.18.10", "systemjs": "0.18.10",
"systemjs-builder": "^0.10.3", "systemjs-builder": "^0.10.3",
"through2": "^0.6.5", "through2": "^0.6.5",
"ts-api-guardian": "0.1.2", "ts-api-guardian": "0.1.3",
"ts2dart": "^0.9.10", "ts2dart": "^0.9.10",
"tsickle": "^0.1.4", "tsickle": "^0.1.4",
"tslint": "^3.10.0-dev.2", "tslint": "^3.10.0-dev.2",

View File

@ -1,55 +1,55 @@
export declare abstract class AbstractControl { export declare abstract class AbstractControl {
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
constructor(validator: ValidatorFn, asyncValidator: AsyncValidatorFn); dirty: boolean;
value: any;
status: string;
valid: boolean;
errors: { errors: {
[key: string]: any; [key: string]: any;
}; };
pending: boolean;
pristine: boolean; pristine: boolean;
dirty: boolean; root: AbstractControl;
status: string;
statusChanges: Observable<any>;
touched: boolean; touched: boolean;
untouched: boolean; untouched: boolean;
valid: boolean;
validator: ValidatorFn;
value: any;
valueChanges: Observable<any>; valueChanges: Observable<any>;
statusChanges: Observable<any>; constructor(validator: ValidatorFn, asyncValidator: AsyncValidatorFn);
pending: boolean; find(path: Array<string | number> | string): AbstractControl;
markAsTouched(): void; getError(errorCode: string, path?: string[]): any;
hasError(errorCode: string, path?: string[]): boolean;
markAsDirty({onlySelf}?: { markAsDirty({onlySelf}?: {
onlySelf?: boolean; onlySelf?: boolean;
}): void; }): void;
markAsPending({onlySelf}?: { markAsPending({onlySelf}?: {
onlySelf?: boolean; onlySelf?: boolean;
}): void; }): void;
setParent(parent: ControlGroup | ControlArray): void; markAsTouched(): void;
updateValueAndValidity({onlySelf, emitEvent}?: {
onlySelf?: boolean;
emitEvent?: boolean;
}): void;
setErrors(errors: { setErrors(errors: {
[key: string]: any; [key: string]: any;
}, {emitEvent}?: { }, {emitEvent}?: {
emitEvent?: boolean; emitEvent?: boolean;
}): void; }): void;
find(path: Array<string | number> | string): AbstractControl; setParent(parent: ControlGroup | ControlArray): void;
getError(errorCode: string, path?: string[]): any; updateValueAndValidity({onlySelf, emitEvent}?: {
hasError(errorCode: string, path?: string[]): boolean; onlySelf?: boolean;
root: AbstractControl; emitEvent?: boolean;
}): void;
} }
export declare abstract class AbstractControlDirective { export declare abstract class AbstractControlDirective {
control: AbstractControl; control: AbstractControl;
value: any; dirty: boolean;
valid: boolean;
errors: { errors: {
[key: string]: any; [key: string]: any;
}; };
path: string[];
pristine: boolean; pristine: boolean;
dirty: boolean;
touched: boolean; touched: boolean;
untouched: boolean; untouched: boolean;
path: string[]; valid: boolean;
value: any;
} }
export declare const APP_BASE_HREF: OpaqueToken; export declare const APP_BASE_HREF: OpaqueToken;
@ -64,9 +64,9 @@ export declare class CheckboxControlValueAccessor implements ControlValueAccesso
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
constructor(_renderer: Renderer, _elementRef: ElementRef); constructor(_renderer: Renderer, _elementRef: ElementRef);
writeValue(value: any): void;
registerOnChange(fn: (_: any) => {}): void; registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void; registerOnTouched(fn: () => {}): void;
writeValue(value: any): void;
} }
export declare const COMMON_DIRECTIVES: Type[][]; export declare const COMMON_DIRECTIVES: Type[][];
@ -75,27 +75,27 @@ export declare const COMMON_PIPES: (typeof AsyncPipe | typeof SlicePipe | typeof
export declare class Control extends AbstractControl { export declare class Control extends AbstractControl {
constructor(value?: any, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn); constructor(value?: any, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
registerOnChange(fn: Function): void;
updateValue(value: any, {onlySelf, emitEvent, emitModelToViewChange}?: { updateValue(value: any, {onlySelf, emitEvent, emitModelToViewChange}?: {
onlySelf?: boolean; onlySelf?: boolean;
emitEvent?: boolean; emitEvent?: boolean;
emitModelToViewChange?: boolean; emitModelToViewChange?: boolean;
}): void; }): void;
registerOnChange(fn: Function): void;
} }
export declare class ControlArray extends AbstractControl { export declare class ControlArray extends AbstractControl {
controls: AbstractControl[]; controls: AbstractControl[];
length: number;
constructor(controls: AbstractControl[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn); constructor(controls: AbstractControl[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
at(index: number): AbstractControl; at(index: number): AbstractControl;
push(control: AbstractControl): void;
insert(index: number, control: AbstractControl): void; insert(index: number, control: AbstractControl): void;
push(control: AbstractControl): void;
removeAt(index: number): void; removeAt(index: number): void;
length: number;
} }
export declare class ControlContainer extends AbstractControlDirective { export declare class ControlContainer extends AbstractControlDirective {
name: string;
formDirective: Form; formDirective: Form;
name: string;
path: string[]; path: string[];
} }
@ -108,18 +108,18 @@ export declare class ControlGroup extends AbstractControl {
}, optionals?: { }, optionals?: {
[key: string]: boolean; [key: string]: boolean;
}, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn); }, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
registerControl(name: string, control: AbstractControl): void;
addControl(name: string, control: AbstractControl): void; addControl(name: string, control: AbstractControl): void;
removeControl(name: string): void;
include(controlName: string): void;
exclude(controlName: string): void;
contains(controlName: string): boolean; contains(controlName: string): boolean;
exclude(controlName: string): void;
include(controlName: string): void;
registerControl(name: string, control: AbstractControl): void;
removeControl(name: string): void;
} }
export interface ControlValueAccessor { export interface ControlValueAccessor {
writeValue(obj: any): void;
registerOnChange(fn: any): void; registerOnChange(fn: any): void;
registerOnTouched(fn: any): void; registerOnTouched(fn: any): void;
writeValue(obj: any): void;
} }
export declare const CORE_DIRECTIVES: Type[]; export declare const CORE_DIRECTIVES: Type[];
@ -140,18 +140,18 @@ export declare class DefaultValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
constructor(_renderer: Renderer, _elementRef: ElementRef); constructor(_renderer: Renderer, _elementRef: ElementRef);
writeValue(value: any): void;
registerOnChange(fn: (_: any) => void): void; registerOnChange(fn: (_: any) => void): void;
registerOnTouched(fn: () => void): void; registerOnTouched(fn: () => void): void;
writeValue(value: any): void;
} }
export interface Form { export interface Form {
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
removeControl(dir: NgControl): void;
getControl(dir: NgControl): Control;
addControlGroup(dir: NgControlGroup): void; addControlGroup(dir: NgControlGroup): void;
removeControlGroup(dir: NgControlGroup): void; getControl(dir: NgControl): Control;
getControlGroup(dir: NgControlGroup): ControlGroup; getControlGroup(dir: NgControlGroup): ControlGroup;
removeControl(dir: NgControl): void;
removeControlGroup(dir: NgControlGroup): void;
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
@ -160,25 +160,25 @@ export declare const FORM_DIRECTIVES: Type[];
export declare const FORM_PROVIDERS: Type[]; export declare const FORM_PROVIDERS: Type[];
export declare class FormBuilder { export declare class FormBuilder {
array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): ControlArray;
control(value: Object, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): Control;
group(controlsConfig: { group(controlsConfig: {
[key: string]: any; [key: string]: any;
}, extra?: { }, extra?: {
[key: string]: any; [key: string]: any;
}): ControlGroup; }): ControlGroup;
control(value: Object, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): Control;
array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): ControlArray;
} }
export declare class HashLocationStrategy extends LocationStrategy { export declare class HashLocationStrategy extends LocationStrategy {
constructor(_platformLocation: PlatformLocation, _baseHref?: string); constructor(_platformLocation: PlatformLocation, _baseHref?: string);
onPopState(fn: UrlChangeListener): void; back(): void;
forward(): void;
getBaseHref(): string; getBaseHref(): string;
onPopState(fn: UrlChangeListener): void;
path(): string; path(): string;
prepareExternalUrl(internal: string): string; prepareExternalUrl(internal: string): string;
pushState(state: any, title: string, path: string, queryParams: string): void; pushState(state: any, title: string, path: string, queryParams: string): void;
replaceState(state: any, title: string, path: string, queryParams: string): void; replaceState(state: any, title: string, path: string, queryParams: string): void;
forward(): void;
back(): void;
} }
export declare class I18nPluralPipe implements PipeTransform { export declare class I18nPluralPipe implements PipeTransform {
@ -200,29 +200,29 @@ export declare class JsonPipe implements PipeTransform {
export declare class Location { export declare class Location {
constructor(platformStrategy: LocationStrategy); constructor(platformStrategy: LocationStrategy);
path(): string; back(): void;
forward(): void;
go(path: string, query?: string): void;
isCurrentPathEqualTo(path: string, query?: string): boolean; isCurrentPathEqualTo(path: string, query?: string): boolean;
normalize(url: string): string; normalize(url: string): string;
path(): string;
prepareExternalUrl(url: string): string; prepareExternalUrl(url: string): string;
go(path: string, query?: string): void;
replaceState(path: string, query?: string): void; replaceState(path: string, query?: string): void;
forward(): void;
back(): void;
subscribe(onNext: (value: any) => void, onThrow?: (exception: any) => void, onReturn?: () => void): Object; subscribe(onNext: (value: any) => void, onThrow?: (exception: any) => void, onReturn?: () => void): Object;
static normalizeQueryParams(params: string): string;
static joinWithSlash(start: string, end: string): string; static joinWithSlash(start: string, end: string): string;
static normalizeQueryParams(params: string): string;
static stripTrailingSlash(url: string): string; static stripTrailingSlash(url: string): string;
} }
export declare abstract class LocationStrategy { export declare abstract class LocationStrategy {
abstract back(): void;
abstract forward(): void;
abstract getBaseHref(): string;
abstract onPopState(fn: UrlChangeListener): void;
abstract path(): string; abstract path(): string;
abstract prepareExternalUrl(internal: string): string; abstract prepareExternalUrl(internal: string): string;
abstract pushState(state: any, title: string, url: string, queryParams: string): void; abstract pushState(state: any, title: string, url: string, queryParams: string): void;
abstract replaceState(state: any, title: string, url: string, queryParams: string): void; abstract replaceState(state: any, title: string, url: string, queryParams: string): void;
abstract forward(): void;
abstract back(): void;
abstract onPopState(fn: UrlChangeListener): void;
abstract getBaseHref(): string;
} }
export declare class LowerCasePipe implements PipeTransform { export declare class LowerCasePipe implements PipeTransform {
@ -250,124 +250,124 @@ export declare const NG_VALIDATORS: OpaqueToken;
export declare const NG_VALUE_ACCESSOR: OpaqueToken; export declare const NG_VALUE_ACCESSOR: OpaqueToken;
export declare class NgClass implements DoCheck, OnDestroy { export declare class NgClass implements DoCheck, OnDestroy {
constructor(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
initialClasses: string; initialClasses: string;
rawClass: string | string[] | Set<string> | { rawClass: string | string[] | Set<string> | {
[key: string]: any; [key: string]: any;
}; };
constructor(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
ngDoCheck(): void; ngDoCheck(): void;
ngOnDestroy(): void; ngOnDestroy(): void;
} }
export declare abstract class NgControl extends AbstractControlDirective { export declare abstract class NgControl extends AbstractControlDirective {
name: string;
valueAccessor: ControlValueAccessor;
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
name: string;
validator: ValidatorFn;
valueAccessor: ControlValueAccessor;
abstract viewToModelUpdate(newValue: any): void; abstract viewToModelUpdate(newValue: any): void;
} }
export declare class NgControlGroup extends ControlContainer implements OnInit, OnDestroy { export declare class NgControlGroup extends ControlContainer implements OnInit, OnDestroy {
constructor(parent: ControlContainer, _validators: any[], _asyncValidators: any[]);
ngOnInit(): void;
ngOnDestroy(): void;
control: ControlGroup;
path: string[];
formDirective: Form;
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: ControlGroup;
formDirective: Form;
path: string[];
validator: ValidatorFn;
constructor(parent: ControlContainer, _validators: any[], _asyncValidators: any[]);
ngOnDestroy(): void;
ngOnInit(): void;
} }
export declare class NgControlName extends NgControl implements OnChanges, OnDestroy { export declare class NgControlName extends NgControl implements OnChanges, OnDestroy {
asyncValidator: AsyncValidatorFn;
control: Control;
formDirective: any;
model: any; model: any;
path: string[];
validator: ValidatorFn;
viewModel: any; viewModel: any;
constructor(_parent: ControlContainer, _validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]); constructor(_parent: ControlContainer, _validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
ngOnChanges(changes: SimpleChanges): void; ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void; ngOnDestroy(): void;
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
path: string[];
formDirective: any;
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn;
control: Control;
} }
export declare class NgControlStatus { export declare class NgControlStatus {
constructor(cd: NgControl);
ngClassUntouched: boolean;
ngClassTouched: boolean;
ngClassPristine: boolean;
ngClassDirty: boolean; ngClassDirty: boolean;
ngClassValid: boolean;
ngClassInvalid: boolean; ngClassInvalid: boolean;
ngClassPristine: boolean;
ngClassTouched: boolean;
ngClassUntouched: boolean;
ngClassValid: boolean;
constructor(cd: NgControl);
} }
export declare class NgFor implements DoCheck { export declare class NgFor implements DoCheck {
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<NgForRow>, _iterableDiffers: IterableDiffers, _cdr: ChangeDetectorRef);
ngForOf: any; ngForOf: any;
ngForTemplate: TemplateRef<NgForRow>; ngForTemplate: TemplateRef<NgForRow>;
ngForTrackBy: TrackByFn; ngForTrackBy: TrackByFn;
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<NgForRow>, _iterableDiffers: IterableDiffers, _cdr: ChangeDetectorRef);
ngDoCheck(): void; ngDoCheck(): void;
} }
export declare class NgForm extends ControlContainer implements Form { export declare class NgForm extends ControlContainer implements Form {
form: ControlGroup;
ngSubmit: EventEmitter<{}>;
constructor(validators: any[], asyncValidators: any[]);
submitted: boolean;
formDirective: Form;
control: ControlGroup; control: ControlGroup;
path: string[];
controls: { controls: {
[key: string]: AbstractControl; [key: string]: AbstractControl;
}; };
form: ControlGroup;
formDirective: Form;
ngSubmit: EventEmitter<{}>;
path: string[];
submitted: boolean;
constructor(validators: any[], asyncValidators: any[]);
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
getControl(dir: NgControl): Control;
removeControl(dir: NgControl): void;
addControlGroup(dir: NgControlGroup): void; addControlGroup(dir: NgControlGroup): void;
removeControlGroup(dir: NgControlGroup): void; getControl(dir: NgControl): Control;
getControlGroup(dir: NgControlGroup): ControlGroup; getControlGroup(dir: NgControlGroup): ControlGroup;
updateModel(dir: NgControl, value: any): void;
onSubmit(): boolean; onSubmit(): boolean;
removeControl(dir: NgControl): void;
removeControlGroup(dir: NgControlGroup): void;
updateModel(dir: NgControl, value: any): void;
} }
export declare class NgFormControl extends NgControl implements OnChanges { export declare class NgFormControl extends NgControl implements OnChanges {
asyncValidator: AsyncValidatorFn;
control: Control;
form: Control; form: Control;
update: EventEmitter<{}>;
model: any; model: any;
path: string[];
update: EventEmitter<{}>;
validator: ValidatorFn;
viewModel: any; viewModel: any;
constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]); constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
ngOnChanges(changes: SimpleChanges): void; ngOnChanges(changes: SimpleChanges): void;
path: string[];
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn;
control: Control;
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
export declare class NgFormModel extends ControlContainer implements Form, OnChanges { export declare class NgFormModel extends ControlContainer implements Form, OnChanges {
form: ControlGroup;
directives: NgControl[];
ngSubmit: EventEmitter<{}>;
constructor(_validators: any[], _asyncValidators: any[]);
ngOnChanges(changes: SimpleChanges): void;
submitted: boolean;
formDirective: Form;
control: ControlGroup; control: ControlGroup;
directives: NgControl[];
form: ControlGroup;
formDirective: Form;
ngSubmit: EventEmitter<{}>;
path: string[]; path: string[];
submitted: boolean;
constructor(_validators: any[], _asyncValidators: any[]);
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
getControl(dir: NgControl): Control;
removeControl(dir: NgControl): void;
addControlGroup(dir: NgControlGroup): void; addControlGroup(dir: NgControlGroup): void;
removeControlGroup(dir: NgControlGroup): void; getControl(dir: NgControl): Control;
getControlGroup(dir: NgControlGroup): ControlGroup; getControlGroup(dir: NgControlGroup): ControlGroup;
updateModel(dir: NgControl, value: any): void; ngOnChanges(changes: SimpleChanges): void;
onSubmit(): boolean; onSubmit(): boolean;
removeControl(dir: NgControl): void;
removeControlGroup(dir: NgControlGroup): void;
updateModel(dir: NgControl, value: any): void;
} }
export declare class NgIf { export declare class NgIf {
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<Object>);
ngIf: any; ngIf: any;
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<Object>);
} }
export declare abstract class NgLocalization { export declare abstract class NgLocalization {
@ -375,22 +375,22 @@ export declare abstract class NgLocalization {
} }
export declare class NgModel extends NgControl implements OnChanges { export declare class NgModel extends NgControl implements OnChanges {
update: EventEmitter<{}>; asyncValidator: AsyncValidatorFn;
control: Control;
model: any; model: any;
path: string[];
update: EventEmitter<{}>;
validator: ValidatorFn;
viewModel: any; viewModel: any;
constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]); constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
ngOnChanges(changes: SimpleChanges): void; ngOnChanges(changes: SimpleChanges): void;
control: Control;
path: string[];
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn;
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
export declare class NgPlural implements AfterContentInit { export declare class NgPlural implements AfterContentInit {
cases: QueryList<NgPluralCase>; cases: QueryList<NgPluralCase>;
constructor(_localization: NgLocalization);
ngPlural: number; ngPlural: number;
constructor(_localization: NgLocalization);
ngAfterContentInit(): void; ngAfterContentInit(): void;
} }
@ -401,17 +401,17 @@ export declare class NgPluralCase {
export declare class NgSelectOption implements OnDestroy { export declare class NgSelectOption implements OnDestroy {
id: string; id: string;
constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor);
ngValue: any; ngValue: any;
value: any; value: any;
constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor);
ngOnDestroy(): void; ngOnDestroy(): void;
} }
export declare class NgStyle implements DoCheck { export declare class NgStyle implements DoCheck {
constructor(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
rawStyle: { rawStyle: {
[key: string]: string; [key: string]: string;
}; };
constructor(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
ngDoCheck(): void; ngDoCheck(): void;
} }
@ -420,9 +420,9 @@ export declare class NgSwitch {
} }
export declare class NgSwitchCase { export declare class NgSwitchCase {
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
ngSwitchCase: any; ngSwitchCase: any;
ngSwitchWhen: any; ngSwitchWhen: any;
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
} }
export declare class NgSwitchDefault { export declare class NgSwitchDefault {
@ -430,21 +430,21 @@ export declare class NgSwitchDefault {
} }
export declare class NgTemplateOutlet { export declare class NgTemplateOutlet {
constructor(_viewContainerRef: ViewContainerRef);
ngOutletContext: Object; ngOutletContext: Object;
ngTemplateOutlet: TemplateRef<Object>; ngTemplateOutlet: TemplateRef<Object>;
constructor(_viewContainerRef: ViewContainerRef);
} }
export declare class PathLocationStrategy extends LocationStrategy { export declare class PathLocationStrategy extends LocationStrategy {
constructor(_platformLocation: PlatformLocation, href?: string); constructor(_platformLocation: PlatformLocation, href?: string);
onPopState(fn: UrlChangeListener): void; back(): void;
forward(): void;
getBaseHref(): string; getBaseHref(): string;
prepareExternalUrl(internal: string): string; onPopState(fn: UrlChangeListener): void;
path(): string; path(): string;
prepareExternalUrl(internal: string): string;
pushState(state: any, title: string, url: string, queryParams: string): void; pushState(state: any, title: string, url: string, queryParams: string): void;
replaceState(state: any, title: string, url: string, queryParams: string): void; replaceState(state: any, title: string, url: string, queryParams: string): void;
forward(): void;
back(): void;
} }
export declare class PatternValidator implements Validator { export declare class PatternValidator implements Validator {
@ -459,16 +459,16 @@ export declare class PercentPipe implements PipeTransform {
} }
export declare abstract class PlatformLocation { export declare abstract class PlatformLocation {
abstract getBaseHrefFromDOM(): string; hash: string;
abstract onPopState(fn: UrlChangeListener): void;
abstract onHashChange(fn: UrlChangeListener): void;
pathname: string; pathname: string;
search: string; search: string;
hash: string;
abstract replaceState(state: any, title: string, url: string): void;
abstract pushState(state: any, title: string, url: string): void;
abstract forward(): void;
abstract back(): void; abstract back(): void;
abstract forward(): void;
abstract getBaseHrefFromDOM(): string;
abstract onHashChange(fn: UrlChangeListener): void;
abstract onPopState(fn: UrlChangeListener): void;
abstract pushState(state: any, title: string, url: string): void;
abstract replaceState(state: any, title: string, url: string): void;
} }
export declare class RadioButtonState { export declare class RadioButtonState {
@ -485,13 +485,13 @@ export declare class RequiredValidator {
} }
export declare class SelectControlValueAccessor implements ControlValueAccessor { export declare class SelectControlValueAccessor implements ControlValueAccessor {
value: any;
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
value: any;
constructor(_renderer: Renderer, _elementRef: ElementRef); constructor(_renderer: Renderer, _elementRef: ElementRef);
writeValue(value: any): void;
registerOnChange(fn: (value: any) => any): void; registerOnChange(fn: (value: any) => any): void;
registerOnTouched(fn: () => any): void; registerOnTouched(fn: () => any): void;
writeValue(value: any): void;
} }
export declare class SlicePipe implements PipeTransform { export declare class SlicePipe implements PipeTransform {
@ -517,15 +517,15 @@ export interface Validator {
} }
export declare class Validators { export declare class Validators {
static required(control: AbstractControl): { static compose(validators: ValidatorFn[]): ValidatorFn;
[key: string]: boolean; static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn;
};
static minLength(minLength: number): ValidatorFn;
static maxLength(maxLength: number): ValidatorFn; static maxLength(maxLength: number): ValidatorFn;
static pattern(pattern: string): ValidatorFn; static minLength(minLength: number): ValidatorFn;
static nullValidator(c: AbstractControl): { static nullValidator(c: AbstractControl): {
[key: string]: boolean; [key: string]: boolean;
}; };
static compose(validators: ValidatorFn[]): ValidatorFn; static pattern(pattern: string): ValidatorFn;
static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn; static required(control: AbstractControl): {
[key: string]: boolean;
};
} }

View File

@ -4,30 +4,30 @@ export declare class MockLocationStrategy extends LocationStrategy {
internalTitle: string; internalTitle: string;
urlChanges: string[]; urlChanges: string[];
constructor(); constructor();
simulatePopState(url: string): void; back(): void;
forward(): void;
getBaseHref(): string;
onPopState(fn: (value: any) => void): void;
path(): string; path(): string;
prepareExternalUrl(internal: string): string; prepareExternalUrl(internal: string): string;
pushState(ctx: any, title: string, path: string, query: string): void; pushState(ctx: any, title: string, path: string, query: string): void;
replaceState(ctx: any, title: string, path: string, query: string): void; replaceState(ctx: any, title: string, path: string, query: string): void;
onPopState(fn: (value: any) => void): void; simulatePopState(url: string): void;
getBaseHref(): string;
back(): void;
forward(): void;
} }
export declare class SpyLocation implements Location { export declare class SpyLocation implements Location {
urlChanges: string[]; urlChanges: string[];
setInitialPath(url: string): void;
setBaseHref(url: string): void;
path(): string;
isCurrentPathEqualTo(path: string, query?: string): boolean;
simulateUrlPop(pathname: string): void;
simulateHashChange(pathname: string): void;
prepareExternalUrl(url: string): string;
go(path: string, query?: string): void;
replaceState(path: string, query?: string): void;
forward(): void;
back(): void; back(): void;
subscribe(onNext: (value: any) => void, onThrow?: (error: any) => void, onReturn?: () => void): Object; forward(): void;
go(path: string, query?: string): void;
isCurrentPathEqualTo(path: string, query?: string): boolean;
normalize(url: string): string; normalize(url: string): string;
path(): string;
prepareExternalUrl(url: string): string;
replaceState(path: string, query?: string): void;
setBaseHref(url: string): void;
setInitialPath(url: string): void;
simulateHashChange(pathname: string): void;
simulateUrlPop(pathname: string): void;
subscribe(onNext: (value: any) => void, onThrow?: (error: any) => void, onReturn?: () => void): Object;
} }

View File

@ -1,60 +1,60 @@
export declare class AttrAst implements TemplateAst { export declare class AttrAst implements TemplateAst {
name: string; name: string;
value: string;
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
value: string;
constructor(name: string, value: string, sourceSpan: ParseSourceSpan); constructor(name: string, value: string, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
export declare class BoundDirectivePropertyAst implements TemplateAst { export declare class BoundDirectivePropertyAst implements TemplateAst {
directiveName: string; directiveName: string;
sourceSpan: ParseSourceSpan;
templateName: string; templateName: string;
value: AST; value: AST;
sourceSpan: ParseSourceSpan;
constructor(directiveName: string, templateName: string, value: AST, sourceSpan: ParseSourceSpan); constructor(directiveName: string, templateName: string, value: AST, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
export declare class BoundElementPropertyAst implements TemplateAst { export declare class BoundElementPropertyAst implements TemplateAst {
name: string; name: string;
type: PropertyBindingType;
securityContext: SecurityContext; securityContext: SecurityContext;
value: AST;
unit: string;
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
type: PropertyBindingType;
unit: string;
value: AST;
constructor(name: string, type: PropertyBindingType, securityContext: SecurityContext, value: AST, unit: string, sourceSpan: ParseSourceSpan); constructor(name: string, type: PropertyBindingType, securityContext: SecurityContext, value: AST, unit: string, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
export declare class BoundEventAst implements TemplateAst { export declare class BoundEventAst implements TemplateAst {
name: string; fullName: string;
target: string;
handler: AST; handler: AST;
name: string;
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
target: string;
constructor(name: string, target: string, handler: AST, sourceSpan: ParseSourceSpan); constructor(name: string, target: string, handler: AST, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
fullName: string;
} }
export declare class BoundTextAst implements TemplateAst { export declare class BoundTextAst implements TemplateAst {
value: AST;
ngContentIndex: number; ngContentIndex: number;
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
value: AST;
constructor(value: AST, ngContentIndex: number, sourceSpan: ParseSourceSpan); constructor(value: AST, ngContentIndex: number, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
export declare class CompileDiDependencyMetadata { export declare class CompileDiDependencyMetadata {
isAttribute: boolean; isAttribute: boolean;
isSelf: boolean;
isHost: boolean; isHost: boolean;
isSkipSelf: boolean;
isOptional: boolean; isOptional: boolean;
isSelf: boolean;
isSkipSelf: boolean;
isValue: boolean; isValue: boolean;
query: CompileQueryMetadata; query: CompileQueryMetadata;
viewQuery: CompileQueryMetadata;
token: CompileTokenMetadata; token: CompileTokenMetadata;
value: any; value: any;
viewQuery: CompileQueryMetadata;
constructor({isAttribute, isSelf, isHost, isSkipSelf, isOptional, isValue, query, viewQuery, token, value}?: { constructor({isAttribute, isSelf, isHost, isSkipSelf, isOptional, isValue, query, viewQuery, token, value}?: {
isAttribute?: boolean; isAttribute?: boolean;
isSelf?: boolean; isSelf?: boolean;
@ -67,43 +67,18 @@ export declare class CompileDiDependencyMetadata {
token?: CompileTokenMetadata; token?: CompileTokenMetadata;
value?: any; value?: any;
}); });
static fromJson(data: {
[key: string]: any;
}): CompileDiDependencyMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static fromJson(data: {
[key: string]: any;
}): CompileDiDependencyMetadata;
} }
export declare class CompileDirectiveMetadata implements CompileMetadataWithType { export declare class CompileDirectiveMetadata implements CompileMetadataWithType {
static create({type, isComponent, selector, exportAs, changeDetection, inputs, outputs, host, lifecycleHooks, providers, viewProviders, queries, viewQueries, precompile, template}?: {
type?: CompileTypeMetadata;
isComponent?: boolean;
selector?: string;
exportAs?: string;
changeDetection?: ChangeDetectionStrategy;
inputs?: string[];
outputs?: string[];
host?: {
[key: string]: string;
};
lifecycleHooks?: LifecycleHooks[];
providers?: Array<CompileProviderMetadata | CompileTypeMetadata | CompileIdentifierMetadata | any[]>;
viewProviders?: Array<CompileProviderMetadata | CompileTypeMetadata | CompileIdentifierMetadata | any[]>;
queries?: CompileQueryMetadata[];
viewQueries?: CompileQueryMetadata[];
precompile?: CompileTypeMetadata[];
template?: CompileTemplateMetadata;
}): CompileDirectiveMetadata;
type: CompileTypeMetadata;
isComponent: boolean;
selector: string;
exportAs: string;
changeDetection: ChangeDetectionStrategy; changeDetection: ChangeDetectionStrategy;
inputs: { exportAs: string;
[key: string]: string; hostAttributes: {
};
outputs: {
[key: string]: string; [key: string]: string;
}; };
hostListeners: { hostListeners: {
@ -112,16 +87,23 @@ export declare class CompileDirectiveMetadata implements CompileMetadataWithType
hostProperties: { hostProperties: {
[key: string]: string; [key: string]: string;
}; };
hostAttributes: { identifier: CompileIdentifierMetadata;
inputs: {
[key: string]: string; [key: string]: string;
}; };
isComponent: boolean;
lifecycleHooks: LifecycleHooks[]; lifecycleHooks: LifecycleHooks[];
providers: CompileProviderMetadata[]; outputs: {
viewProviders: CompileProviderMetadata[]; [key: string]: string;
queries: CompileQueryMetadata[]; };
viewQueries: CompileQueryMetadata[];
precompile: CompileTypeMetadata[]; precompile: CompileTypeMetadata[];
providers: CompileProviderMetadata[];
queries: CompileQueryMetadata[];
selector: string;
template: CompileTemplateMetadata; template: CompileTemplateMetadata;
type: CompileTypeMetadata;
viewProviders: CompileProviderMetadata[];
viewQueries: CompileQueryMetadata[];
constructor({type, isComponent, selector, exportAs, changeDetection, inputs, outputs, hostListeners, hostProperties, hostAttributes, lifecycleHooks, providers, viewProviders, queries, viewQueries, precompile, template}?: { constructor({type, isComponent, selector, exportAs, changeDetection, inputs, outputs, hostListeners, hostProperties, hostAttributes, lifecycleHooks, providers, viewProviders, queries, viewQueries, precompile, template}?: {
type?: CompileTypeMetadata; type?: CompileTypeMetadata;
isComponent?: boolean; isComponent?: boolean;
@ -151,22 +133,41 @@ export declare class CompileDirectiveMetadata implements CompileMetadataWithType
precompile?: CompileTypeMetadata[]; precompile?: CompileTypeMetadata[];
template?: CompileTemplateMetadata; template?: CompileTemplateMetadata;
}); });
identifier: CompileIdentifierMetadata;
static fromJson(data: {
[key: string]: any;
}): CompileDirectiveMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static create({type, isComponent, selector, exportAs, changeDetection, inputs, outputs, host, lifecycleHooks, providers, viewProviders, queries, viewQueries, precompile, template}?: {
type?: CompileTypeMetadata;
isComponent?: boolean;
selector?: string;
exportAs?: string;
changeDetection?: ChangeDetectionStrategy;
inputs?: string[];
outputs?: string[];
host?: {
[key: string]: string;
};
lifecycleHooks?: LifecycleHooks[];
providers?: Array<CompileProviderMetadata | CompileTypeMetadata | CompileIdentifierMetadata | any[]>;
viewProviders?: Array<CompileProviderMetadata | CompileTypeMetadata | CompileIdentifierMetadata | any[]>;
queries?: CompileQueryMetadata[];
viewQueries?: CompileQueryMetadata[];
precompile?: CompileTypeMetadata[];
template?: CompileTemplateMetadata;
}): CompileDirectiveMetadata;
static fromJson(data: {
[key: string]: any;
}): CompileDirectiveMetadata;
} }
export declare class CompileFactoryMetadata implements CompileIdentifierMetadata, CompileMetadataWithIdentifier { export declare class CompileFactoryMetadata implements CompileIdentifierMetadata, CompileMetadataWithIdentifier {
runtime: Function; diDeps: CompileDiDependencyMetadata[];
identifier: CompileIdentifierMetadata;
moduleUrl: string;
name: string; name: string;
prefix: string; prefix: string;
moduleUrl: string; runtime: Function;
value: any; value: any;
diDeps: CompileDiDependencyMetadata[];
constructor({runtime, name, moduleUrl, prefix, diDeps, value}: { constructor({runtime, name, moduleUrl, prefix, diDeps, value}: {
runtime?: Function; runtime?: Function;
name?: string; name?: string;
@ -175,20 +176,20 @@ export declare class CompileFactoryMetadata implements CompileIdentifierMetadata
value?: boolean; value?: boolean;
diDeps?: CompileDiDependencyMetadata[]; diDeps?: CompileDiDependencyMetadata[];
}); });
identifier: CompileIdentifierMetadata;
static fromJson(data: {
[key: string]: any;
}): CompileFactoryMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static fromJson(data: {
[key: string]: any;
}): CompileFactoryMetadata;
} }
export declare class CompileIdentifierMetadata implements CompileMetadataWithIdentifier { export declare class CompileIdentifierMetadata implements CompileMetadataWithIdentifier {
runtime: any; identifier: CompileIdentifierMetadata;
moduleUrl: string;
name: string; name: string;
prefix: string; prefix: string;
moduleUrl: string; runtime: any;
value: any; value: any;
constructor({runtime, name, moduleUrl, prefix, value}?: { constructor({runtime, name, moduleUrl, prefix, value}?: {
runtime?: any; runtime?: any;
@ -197,58 +198,57 @@ export declare class CompileIdentifierMetadata implements CompileMetadataWithIde
prefix?: string; prefix?: string;
value?: any; value?: any;
}); });
static fromJson(data: {
[key: string]: any;
}): CompileIdentifierMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
identifier: CompileIdentifierMetadata; static fromJson(data: {
[key: string]: any;
}): CompileIdentifierMetadata;
} }
export declare abstract class CompileMetadataWithIdentifier { export declare abstract class CompileMetadataWithIdentifier {
identifier: CompileIdentifierMetadata;
abstract toJson(): { abstract toJson(): {
[key: string]: any; [key: string]: any;
}; };
identifier: CompileIdentifierMetadata;
} }
export declare abstract class CompileMetadataWithType extends CompileMetadataWithIdentifier { export declare abstract class CompileMetadataWithType extends CompileMetadataWithIdentifier {
identifier: CompileIdentifierMetadata;
type: CompileTypeMetadata;
abstract toJson(): { abstract toJson(): {
[key: string]: any; [key: string]: any;
}; };
type: CompileTypeMetadata;
identifier: CompileIdentifierMetadata;
} }
export declare class CompilePipeMetadata implements CompileMetadataWithType { export declare class CompilePipeMetadata implements CompileMetadataWithType {
type: CompileTypeMetadata; identifier: CompileIdentifierMetadata;
lifecycleHooks: LifecycleHooks[];
name: string; name: string;
pure: boolean; pure: boolean;
lifecycleHooks: LifecycleHooks[]; type: CompileTypeMetadata;
constructor({type, name, pure, lifecycleHooks}?: { constructor({type, name, pure, lifecycleHooks}?: {
type?: CompileTypeMetadata; type?: CompileTypeMetadata;
name?: string; name?: string;
pure?: boolean; pure?: boolean;
lifecycleHooks?: LifecycleHooks[]; lifecycleHooks?: LifecycleHooks[];
}); });
identifier: CompileIdentifierMetadata;
static fromJson(data: {
[key: string]: any;
}): CompilePipeMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static fromJson(data: {
[key: string]: any;
}): CompilePipeMetadata;
} }
export declare class CompileProviderMetadata { export declare class CompileProviderMetadata {
token: CompileTokenMetadata;
useClass: CompileTypeMetadata;
useValue: any;
useExisting: CompileTokenMetadata;
useFactory: CompileFactoryMetadata;
deps: CompileDiDependencyMetadata[]; deps: CompileDiDependencyMetadata[];
multi: boolean; multi: boolean;
token: CompileTokenMetadata;
useClass: CompileTypeMetadata;
useExisting: CompileTokenMetadata;
useFactory: CompileFactoryMetadata;
useValue: any;
constructor({token, useClass, useValue, useExisting, useFactory, deps, multi}: { constructor({token, useClass, useValue, useExisting, useFactory, deps, multi}: {
token?: CompileTokenMetadata; token?: CompileTokenMetadata;
useClass?: CompileTypeMetadata; useClass?: CompileTypeMetadata;
@ -258,20 +258,20 @@ export declare class CompileProviderMetadata {
deps?: CompileDiDependencyMetadata[]; deps?: CompileDiDependencyMetadata[];
multi?: boolean; multi?: boolean;
}); });
static fromJson(data: {
[key: string]: any;
}): CompileProviderMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static fromJson(data: {
[key: string]: any;
}): CompileProviderMetadata;
} }
export declare class CompileQueryMetadata { export declare class CompileQueryMetadata {
selectors: Array<CompileTokenMetadata>;
descendants: boolean; descendants: boolean;
first: boolean; first: boolean;
propertyName: string; propertyName: string;
read: CompileTokenMetadata; read: CompileTokenMetadata;
selectors: Array<CompileTokenMetadata>;
constructor({selectors, descendants, first, propertyName, read}?: { constructor({selectors, descendants, first, propertyName, read}?: {
selectors?: Array<CompileTokenMetadata>; selectors?: Array<CompileTokenMetadata>;
descendants?: boolean; descendants?: boolean;
@ -279,12 +279,12 @@ export declare class CompileQueryMetadata {
propertyName?: string; propertyName?: string;
read?: CompileTokenMetadata; read?: CompileTokenMetadata;
}); });
static fromJson(data: {
[key: string]: any;
}): CompileQueryMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static fromJson(data: {
[key: string]: any;
}): CompileQueryMetadata;
} }
export declare const COMPILER_PROVIDERS: Array<any | Type | { export declare const COMPILER_PROVIDERS: Array<any | Type | {
@ -292,11 +292,13 @@ export declare const COMPILER_PROVIDERS: Array<any | Type | {
} | any[]>; } | any[]>;
export declare class CompilerConfig { export declare class CompilerConfig {
renderTypes: RenderTypes;
defaultEncapsulation: ViewEncapsulation; defaultEncapsulation: ViewEncapsulation;
useJit: boolean; genDebugInfo: boolean;
logBindingUpdate: boolean;
platformDirectives: any[]; platformDirectives: any[];
platformPipes: any[]; platformPipes: any[];
renderTypes: RenderTypes;
useJit: boolean;
constructor({renderTypes, defaultEncapsulation, genDebugInfo, logBindingUpdate, useJit, platformDirectives, platformPipes}?: { constructor({renderTypes, defaultEncapsulation, genDebugInfo, logBindingUpdate, useJit, platformDirectives, platformPipes}?: {
renderTypes?: RenderTypes; renderTypes?: RenderTypes;
defaultEncapsulation?: ViewEncapsulation; defaultEncapsulation?: ViewEncapsulation;
@ -306,19 +308,17 @@ export declare class CompilerConfig {
platformDirectives?: any[]; platformDirectives?: any[];
platformPipes?: any[]; platformPipes?: any[];
}); });
genDebugInfo: boolean;
logBindingUpdate: boolean;
} }
export declare class CompileTemplateMetadata { export declare class CompileTemplateMetadata {
animations: CompileAnimationEntryMetadata[];
encapsulation: ViewEncapsulation; encapsulation: ViewEncapsulation;
interpolation: [string, string];
ngContentSelectors: string[];
styleUrls: string[];
styles: string[];
template: string; template: string;
templateUrl: string; templateUrl: string;
styles: string[];
styleUrls: string[];
animations: CompileAnimationEntryMetadata[];
ngContentSelectors: string[];
interpolation: [string, string];
constructor({encapsulation, template, templateUrl, styles, styleUrls, animations, ngContentSelectors, interpolation}?: { constructor({encapsulation, template, templateUrl, styles, styleUrls, animations, ngContentSelectors, interpolation}?: {
encapsulation?: ViewEncapsulation; encapsulation?: ViewEncapsulation;
template?: string; template?: string;
@ -329,43 +329,45 @@ export declare class CompileTemplateMetadata {
animations?: CompileAnimationEntryMetadata[]; animations?: CompileAnimationEntryMetadata[];
interpolation?: [string, string]; interpolation?: [string, string];
}); });
static fromJson(data: {
[key: string]: any;
}): CompileTemplateMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static fromJson(data: {
[key: string]: any;
}): CompileTemplateMetadata;
} }
export declare class CompileTokenMetadata implements CompileMetadataWithIdentifier { export declare class CompileTokenMetadata implements CompileMetadataWithIdentifier {
value: any; assetCacheKey: any;
identifier: CompileIdentifierMetadata; identifier: CompileIdentifierMetadata;
identifierIsInstance: boolean; identifierIsInstance: boolean;
name: string;
runtimeCacheKey: any;
value: any;
constructor({value, identifier, identifierIsInstance}: { constructor({value, identifier, identifierIsInstance}: {
value?: any; value?: any;
identifier?: CompileIdentifierMetadata; identifier?: CompileIdentifierMetadata;
identifierIsInstance?: boolean; identifierIsInstance?: boolean;
}); });
static fromJson(data: { equalsTo(token2: CompileTokenMetadata): boolean;
[key: string]: any;
}): CompileTokenMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
runtimeCacheKey: any; static fromJson(data: {
assetCacheKey: any; [key: string]: any;
equalsTo(token2: CompileTokenMetadata): boolean; }): CompileTokenMetadata;
name: string;
} }
export declare class CompileTypeMetadata implements CompileIdentifierMetadata, CompileMetadataWithType { export declare class CompileTypeMetadata implements CompileIdentifierMetadata, CompileMetadataWithType {
runtime: Type; diDeps: CompileDiDependencyMetadata[];
identifier: CompileIdentifierMetadata;
isHost: boolean;
moduleUrl: string;
name: string; name: string;
prefix: string; prefix: string;
moduleUrl: string; runtime: Type;
isHost: boolean; type: CompileTypeMetadata;
value: any; value: any;
diDeps: CompileDiDependencyMetadata[];
constructor({runtime, name, moduleUrl, prefix, isHost, value, diDeps}?: { constructor({runtime, name, moduleUrl, prefix, isHost, value, diDeps}?: {
runtime?: Type; runtime?: Type;
name?: string; name?: string;
@ -375,14 +377,12 @@ export declare class CompileTypeMetadata implements CompileIdentifierMetadata, C
value?: any; value?: any;
diDeps?: CompileDiDependencyMetadata[]; diDeps?: CompileDiDependencyMetadata[];
}); });
static fromJson(data: {
[key: string]: any;
}): CompileTypeMetadata;
identifier: CompileIdentifierMetadata;
type: CompileTypeMetadata;
toJson(): { toJson(): {
[key: string]: any; [key: string]: any;
}; };
static fromJson(data: {
[key: string]: any;
}): CompileTypeMetadata;
} }
export declare function createOfflineCompileUrlResolver(): UrlResolver; export declare function createOfflineCompileUrlResolver(): UrlResolver;
@ -394,9 +394,9 @@ export declare var DEFAULT_PACKAGE_URL_PROVIDER: {
export declare class DirectiveAst implements TemplateAst { export declare class DirectiveAst implements TemplateAst {
directive: CompileDirectiveMetadata; directive: CompileDirectiveMetadata;
inputs: BoundDirectivePropertyAst[];
hostProperties: BoundElementPropertyAst[];
hostEvents: BoundEventAst[]; hostEvents: BoundEventAst[];
hostProperties: BoundElementPropertyAst[];
inputs: BoundDirectivePropertyAst[];
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
constructor(directive: CompileDirectiveMetadata, inputs: BoundDirectivePropertyAst[], hostProperties: BoundElementPropertyAst[], hostEvents: BoundEventAst[], sourceSpan: ParseSourceSpan); constructor(directive: CompileDirectiveMetadata, inputs: BoundDirectivePropertyAst[], hostProperties: BoundElementPropertyAst[], hostEvents: BoundEventAst[], sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
@ -408,38 +408,38 @@ export declare class DirectiveResolver {
} }
export declare class ElementAst implements TemplateAst { export declare class ElementAst implements TemplateAst {
name: string;
attrs: AttrAst[]; attrs: AttrAst[];
inputs: BoundElementPropertyAst[];
outputs: BoundEventAst[];
references: ReferenceAst[];
directives: DirectiveAst[];
providers: ProviderAst[];
hasViewContainer: boolean;
children: TemplateAst[]; children: TemplateAst[];
directives: DirectiveAst[];
hasViewContainer: boolean;
inputs: BoundElementPropertyAst[];
name: string;
ngContentIndex: number; ngContentIndex: number;
outputs: BoundEventAst[];
providers: ProviderAst[];
references: ReferenceAst[];
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
constructor(name: string, attrs: AttrAst[], inputs: BoundElementPropertyAst[], outputs: BoundEventAst[], references: ReferenceAst[], directives: DirectiveAst[], providers: ProviderAst[], hasViewContainer: boolean, children: TemplateAst[], ngContentIndex: number, sourceSpan: ParseSourceSpan); constructor(name: string, attrs: AttrAst[], inputs: BoundElementPropertyAst[], outputs: BoundEventAst[], references: ReferenceAst[], directives: DirectiveAst[], providers: ProviderAst[], hasViewContainer: boolean, children: TemplateAst[], ngContentIndex: number, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
export declare abstract class ElementSchemaRegistry { export declare abstract class ElementSchemaRegistry {
abstract getMappedPropName(propName: string): string;
abstract hasProperty(tagName: string, propName: string): boolean; abstract hasProperty(tagName: string, propName: string): boolean;
abstract securityContext(tagName: string, propName: string): any; abstract securityContext(tagName: string, propName: string): any;
abstract getMappedPropName(propName: string): string;
} }
export declare class EmbeddedTemplateAst implements TemplateAst { export declare class EmbeddedTemplateAst implements TemplateAst {
attrs: AttrAst[]; attrs: AttrAst[];
outputs: BoundEventAst[];
references: ReferenceAst[];
variables: VariableAst[];
directives: DirectiveAst[];
providers: ProviderAst[];
hasViewContainer: boolean;
children: TemplateAst[]; children: TemplateAst[];
directives: DirectiveAst[];
hasViewContainer: boolean;
ngContentIndex: number; ngContentIndex: number;
outputs: BoundEventAst[];
providers: ProviderAst[];
references: ReferenceAst[];
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
variables: VariableAst[];
constructor(attrs: AttrAst[], outputs: BoundEventAst[], references: ReferenceAst[], variables: VariableAst[], directives: DirectiveAst[], providers: ProviderAst[], hasViewContainer: boolean, children: TemplateAst[], ngContentIndex: number, sourceSpan: ParseSourceSpan); constructor(attrs: AttrAst[], outputs: BoundEventAst[], references: ReferenceAst[], variables: VariableAst[], directives: DirectiveAst[], providers: ProviderAst[], hasViewContainer: boolean, children: TemplateAst[], ngContentIndex: number, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
@ -461,9 +461,9 @@ export declare class NormalizedComponentWithViewDirectives {
export declare class OfflineCompiler { export declare class OfflineCompiler {
constructor(_directiveNormalizer: DirectiveNormalizer, _templateParser: TemplateParser, _styleCompiler: StyleCompiler, _viewCompiler: ViewCompiler, _outputEmitter: OutputEmitter, _xhr: XHR); constructor(_directiveNormalizer: DirectiveNormalizer, _templateParser: TemplateParser, _styleCompiler: StyleCompiler, _viewCompiler: ViewCompiler, _outputEmitter: OutputEmitter, _xhr: XHR);
normalizeDirectiveMetadata(directive: CompileDirectiveMetadata): Promise<CompileDirectiveMetadata>;
compileTemplates(components: NormalizedComponentWithViewDirectives[]): SourceModule; compileTemplates(components: NormalizedComponentWithViewDirectives[]): SourceModule;
loadAndCompileStylesheet(stylesheetUrl: string, shim: boolean, suffix: string): Promise<StyleSheetSourceWithImports>; loadAndCompileStylesheet(stylesheetUrl: string, shim: boolean, suffix: string): Promise<StyleSheetSourceWithImports>;
normalizeDirectiveMetadata(directive: CompileDirectiveMetadata): Promise<CompileDirectiveMetadata>;
} }
export declare class PipeResolver { export declare class PipeResolver {
@ -480,12 +480,12 @@ export declare enum PropertyBindingType {
} }
export declare class ProviderAst implements TemplateAst { export declare class ProviderAst implements TemplateAst {
token: CompileTokenMetadata;
multiProvider: boolean;
eager: boolean; eager: boolean;
providers: CompileProviderMetadata[]; multiProvider: boolean;
providerType: ProviderAstType; providerType: ProviderAstType;
providers: CompileProviderMetadata[];
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
token: CompileTokenMetadata;
constructor(token: CompileTokenMetadata, multiProvider: boolean, eager: boolean, providers: CompileProviderMetadata[], providerType: ProviderAstType, sourceSpan: ParseSourceSpan); constructor(token: CompileTokenMetadata, multiProvider: boolean, eager: boolean, providers: CompileProviderMetadata[], providerType: ProviderAstType, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
@ -500,25 +500,25 @@ export declare enum ProviderAstType {
export declare class ReferenceAst implements TemplateAst { export declare class ReferenceAst implements TemplateAst {
name: string; name: string;
value: CompileTokenMetadata;
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
value: CompileTokenMetadata;
constructor(name: string, value: CompileTokenMetadata, sourceSpan: ParseSourceSpan); constructor(name: string, value: CompileTokenMetadata, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
export declare abstract class RenderTypes { export declare abstract class RenderTypes {
renderer: CompileIdentifierMetadata;
renderText: CompileIdentifierMetadata;
renderElement: CompileIdentifierMetadata;
renderComment: CompileIdentifierMetadata; renderComment: CompileIdentifierMetadata;
renderNode: CompileIdentifierMetadata; renderElement: CompileIdentifierMetadata;
renderEvent: CompileIdentifierMetadata; renderEvent: CompileIdentifierMetadata;
renderNode: CompileIdentifierMetadata;
renderText: CompileIdentifierMetadata;
renderer: CompileIdentifierMetadata;
} }
export declare class RuntimeCompiler implements ComponentResolver { export declare class RuntimeCompiler implements ComponentResolver {
constructor(_metadataResolver: CompileMetadataResolver, _templateNormalizer: DirectiveNormalizer, _templateParser: TemplateParser, _styleCompiler: StyleCompiler, _viewCompiler: ViewCompiler, _xhr: XHR, _genConfig: CompilerConfig); constructor(_metadataResolver: CompileMetadataResolver, _templateNormalizer: DirectiveNormalizer, _templateParser: TemplateParser, _styleCompiler: StyleCompiler, _viewCompiler: ViewCompiler, _xhr: XHR, _genConfig: CompilerConfig);
resolveComponent(component: Type | string): Promise<ComponentFactory<any>>;
clearCache(): void; clearCache(): void;
resolveComponent(component: Type | string): Promise<ComponentFactory<any>>;
} }
export declare class SourceModule { export declare class SourceModule {
@ -535,26 +535,26 @@ export interface TemplateAst {
} }
export interface TemplateAstVisitor { export interface TemplateAstVisitor {
visitNgContent(ast: NgContentAst, context: any): any;
visitEmbeddedTemplate(ast: EmbeddedTemplateAst, context: any): any;
visitElement(ast: ElementAst, context: any): any;
visitReference(ast: ReferenceAst, context: any): any;
visitVariable(ast: VariableAst, context: any): any;
visitEvent(ast: BoundEventAst, context: any): any;
visitElementProperty(ast: BoundElementPropertyAst, context: any): any;
visitAttr(ast: AttrAst, context: any): any; visitAttr(ast: AttrAst, context: any): any;
visitBoundText(ast: BoundTextAst, context: any): any; visitBoundText(ast: BoundTextAst, context: any): any;
visitText(ast: TextAst, context: any): any;
visitDirective(ast: DirectiveAst, context: any): any; visitDirective(ast: DirectiveAst, context: any): any;
visitDirectiveProperty(ast: BoundDirectivePropertyAst, context: any): any; visitDirectiveProperty(ast: BoundDirectivePropertyAst, context: any): any;
visitElement(ast: ElementAst, context: any): any;
visitElementProperty(ast: BoundElementPropertyAst, context: any): any;
visitEmbeddedTemplate(ast: EmbeddedTemplateAst, context: any): any;
visitEvent(ast: BoundEventAst, context: any): any;
visitNgContent(ast: NgContentAst, context: any): any;
visitReference(ast: ReferenceAst, context: any): any;
visitText(ast: TextAst, context: any): any;
visitVariable(ast: VariableAst, context: any): any;
} }
export declare function templateVisitAll(visitor: TemplateAstVisitor, asts: TemplateAst[], context?: any): any[]; export declare function templateVisitAll(visitor: TemplateAstVisitor, asts: TemplateAst[], context?: any): any[];
export declare class TextAst implements TemplateAst { export declare class TextAst implements TemplateAst {
value: string;
ngContentIndex: number; ngContentIndex: number;
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
value: string;
constructor(value: string, ngContentIndex: number, sourceSpan: ParseSourceSpan); constructor(value: string, ngContentIndex: number, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }
@ -566,8 +566,8 @@ export declare class UrlResolver {
export declare class VariableAst implements TemplateAst { export declare class VariableAst implements TemplateAst {
name: string; name: string;
value: string;
sourceSpan: ParseSourceSpan; sourceSpan: ParseSourceSpan;
value: string;
constructor(name: string, value: string, sourceSpan: ParseSourceSpan); constructor(name: string, value: string, sourceSpan: ParseSourceSpan);
visit(visitor: TemplateAstVisitor, context: any): any; visit(visitor: TemplateAstVisitor, context: any): any;
} }

View File

@ -1,18 +1,18 @@
export declare class ComponentFixture<T> { export declare class ComponentFixture<T> {
debugElement: DebugElement;
componentInstance: any;
nativeElement: any;
elementRef: ElementRef;
componentRef: ComponentRef<T>;
changeDetectorRef: ChangeDetectorRef; changeDetectorRef: ChangeDetectorRef;
componentInstance: any;
componentRef: ComponentRef<T>;
debugElement: DebugElement;
elementRef: ElementRef;
nativeElement: any;
ngZone: NgZone; ngZone: NgZone;
constructor(componentRef: ComponentRef<T>, ngZone: NgZone, autoDetect: boolean); constructor(componentRef: ComponentRef<T>, ngZone: NgZone, autoDetect: boolean);
detectChanges(checkNoChanges?: boolean): void;
checkNoChanges(): void;
autoDetectChanges(autoDetect?: boolean): void; autoDetectChanges(autoDetect?: boolean): void;
checkNoChanges(): void;
destroy(): void;
detectChanges(checkNoChanges?: boolean): void;
isStable(): boolean; isStable(): boolean;
whenStable(): Promise<any>; whenStable(): Promise<any>;
destroy(): void;
} }
export declare var ComponentFixtureAutoDetect: OpaqueToken; export declare var ComponentFixtureAutoDetect: OpaqueToken;
@ -26,44 +26,44 @@ export declare class MockDirectiveResolver extends DirectiveResolver {
} }
export declare class MockSchemaRegistry implements ElementSchemaRegistry { export declare class MockSchemaRegistry implements ElementSchemaRegistry {
existingProperties: {
[key: string]: boolean;
};
attrPropMapping: { attrPropMapping: {
[key: string]: string; [key: string]: string;
}; };
existingProperties: {
[key: string]: boolean;
};
constructor(existingProperties: { constructor(existingProperties: {
[key: string]: boolean; [key: string]: boolean;
}, attrPropMapping: { }, attrPropMapping: {
[key: string]: string; [key: string]: string;
}); });
getMappedPropName(attrName: string): string;
hasProperty(tagName: string, property: string): boolean; hasProperty(tagName: string, property: string): boolean;
securityContext(tagName: string, property: string): SecurityContext; securityContext(tagName: string, property: string): SecurityContext;
getMappedPropName(attrName: string): string;
} }
export declare class MockViewResolver extends ViewResolver { export declare class MockViewResolver extends ViewResolver {
constructor(); constructor();
setView(component: Type, view: ViewMetadata): void;
setInlineTemplate(component: Type, template: string): void;
setAnimations(component: Type, animations: AnimationEntryMetadata[]): void;
overrideViewDirective(component: Type, from: Type, to: Type): void; overrideViewDirective(component: Type, from: Type, to: Type): void;
resolve(component: Type): ViewMetadata; resolve(component: Type): ViewMetadata;
setAnimations(component: Type, animations: AnimationEntryMetadata[]): void;
setInlineTemplate(component: Type, template: string): void;
setView(component: Type, view: ViewMetadata): void;
} }
export declare class TestComponentBuilder { export declare class TestComponentBuilder {
constructor(_injector: Injector); constructor(_injector: Injector);
overrideTemplate(componentType: Type, template: string): TestComponentBuilder;
overrideAnimations(componentType: Type, animations: AnimationEntryMetadata[]): TestComponentBuilder;
overrideView(componentType: Type, view: ViewMetadata): TestComponentBuilder;
overrideDirective(componentType: Type, from: Type, to: Type): TestComponentBuilder;
overrideProviders(type: Type, providers: any[]): TestComponentBuilder;
overrideBindings(type: Type, providers: any[]): TestComponentBuilder;
overrideViewProviders(type: Type, providers: any[]): TestComponentBuilder;
overrideViewBindings(type: Type, providers: any[]): TestComponentBuilder;
createAsync(rootComponentType: Type): Promise<ComponentFixture<any>>; createAsync(rootComponentType: Type): Promise<ComponentFixture<any>>;
createFakeAsync(rootComponentType: Type): ComponentFixture<any>; createFakeAsync(rootComponentType: Type): ComponentFixture<any>;
createSync<C>(componentFactory: ComponentFactory<C>): ComponentFixture<C>; createSync<C>(componentFactory: ComponentFactory<C>): ComponentFixture<C>;
overrideAnimations(componentType: Type, animations: AnimationEntryMetadata[]): TestComponentBuilder;
overrideBindings(type: Type, providers: any[]): TestComponentBuilder;
overrideDirective(componentType: Type, from: Type, to: Type): TestComponentBuilder;
overrideProviders(type: Type, providers: any[]): TestComponentBuilder;
overrideTemplate(componentType: Type, template: string): TestComponentBuilder;
overrideView(componentType: Type, view: ViewMetadata): TestComponentBuilder;
overrideViewBindings(type: Type, providers: any[]): TestComponentBuilder;
overrideViewProviders(type: Type, providers: any[]): TestComponentBuilder;
} }
export declare class TestComponentRenderer { export declare class TestComponentRenderer {

View File

@ -1,7 +1,7 @@
export declare class AbstractProviderError extends BaseException { export declare class AbstractProviderError extends BaseException {
context: any;
constructor(injector: ReflectiveInjector, key: ReflectiveKey, constructResolvingMessage: Function); constructor(injector: ReflectiveInjector, key: ReflectiveKey, constructResolvingMessage: Function);
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void; addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
context: any;
} }
export declare abstract class AfterContentChecked { export declare abstract class AfterContentChecked {
@ -23,20 +23,20 @@ export declare abstract class AfterViewInit {
export declare function animate(timing: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata): AnimationAnimateMetadata; export declare function animate(timing: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata): AnimationAnimateMetadata;
export declare class AnimationAnimateMetadata extends AnimationMetadata { export declare class AnimationAnimateMetadata extends AnimationMetadata {
timings: string | number;
styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata; styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata;
timings: string | number;
constructor(timings: string | number, styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata); constructor(timings: string | number, styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata);
} }
export declare class AnimationEntryMetadata { export declare class AnimationEntryMetadata {
name: string;
definitions: AnimationStateMetadata[]; definitions: AnimationStateMetadata[];
name: string;
constructor(name: string, definitions: AnimationStateMetadata[]); constructor(name: string, definitions: AnimationStateMetadata[]);
} }
export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata { export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata {
constructor(_steps: AnimationMetadata[]);
steps: AnimationMetadata[]; steps: AnimationMetadata[];
constructor(_steps: AnimationMetadata[]);
} }
export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata { export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata {
@ -48,21 +48,21 @@ export declare abstract class AnimationMetadata {
} }
export declare abstract class AnimationPlayer { export declare abstract class AnimationPlayer {
abstract onDone(fn: Function): void;
abstract play(): void;
abstract pause(): void;
abstract restart(): void;
abstract finish(): void;
abstract destroy(): void;
abstract reset(): void;
abstract setPosition(p: any): void;
abstract getPosition(): number;
parentPlayer: AnimationPlayer; parentPlayer: AnimationPlayer;
abstract destroy(): void;
abstract finish(): void;
abstract getPosition(): number;
abstract onDone(fn: Function): void;
abstract pause(): void;
abstract play(): void;
abstract reset(): void;
abstract restart(): void;
abstract setPosition(p: any): void;
} }
export declare class AnimationSequenceMetadata extends AnimationWithStepsMetadata { export declare class AnimationSequenceMetadata extends AnimationWithStepsMetadata {
constructor(_steps: AnimationMetadata[]);
steps: AnimationMetadata[]; steps: AnimationMetadata[];
constructor(_steps: AnimationMetadata[]);
} }
export declare class AnimationStateDeclarationMetadata extends AnimationStateMetadata { export declare class AnimationStateDeclarationMetadata extends AnimationStateMetadata {
@ -81,18 +81,18 @@ export declare class AnimationStateTransitionMetadata extends AnimationStateMeta
} }
export declare class AnimationStyleMetadata extends AnimationMetadata { export declare class AnimationStyleMetadata extends AnimationMetadata {
offset: number;
styles: Array<string | { styles: Array<string | {
[key: string]: string | number; [key: string]: string | number;
}>; }>;
offset: number;
constructor(styles: Array<string | { constructor(styles: Array<string | {
[key: string]: string | number; [key: string]: string | number;
}>, offset?: number); }>, offset?: number);
} }
export declare abstract class AnimationWithStepsMetadata extends AnimationMetadata { export declare abstract class AnimationWithStepsMetadata extends AnimationMetadata {
constructor();
steps: AnimationMetadata[]; steps: AnimationMetadata[];
constructor();
} }
export declare const APP_ID: any; export declare const APP_ID: any;
@ -104,16 +104,16 @@ export declare const APPLICATION_COMMON_PROVIDERS: Array<Type | {
} | any[]>; } | any[]>;
export declare abstract class ApplicationRef { export declare abstract class ApplicationRef {
abstract registerBootstrapListener(listener: (ref: ComponentRef<any>) => void): void; componentTypes: Type[];
abstract registerDisposeListener(dispose: () => void): void;
abstract waitForAsyncInitializers(): Promise<any>;
abstract run(callback: Function): any;
abstract bootstrap<C>(componentFactory: ComponentFactory<C>): ComponentRef<C>;
injector: Injector; injector: Injector;
zone: NgZone; zone: NgZone;
abstract bootstrap<C>(componentFactory: ComponentFactory<C>): ComponentRef<C>;
abstract dispose(): void; abstract dispose(): void;
abstract registerBootstrapListener(listener: (ref: ComponentRef<any>) => void): void;
abstract registerDisposeListener(dispose: () => void): void;
abstract run(callback: Function): any;
abstract tick(): void; abstract tick(): void;
componentTypes: Type[]; abstract waitForAsyncInitializers(): Promise<any>;
} }
export declare function asNativeElements(debugEls: DebugElement[]): any; export declare function asNativeElements(debugEls: DebugElement[]): any;
@ -124,8 +124,8 @@ export declare var Attribute: AttributeMetadataFactory;
export declare class AttributeMetadata extends DependencyMetadata { export declare class AttributeMetadata extends DependencyMetadata {
attributeName: string; attributeName: string;
constructor(attributeName: string);
token: AttributeMetadata; token: AttributeMetadata;
constructor(attributeName: string);
toString(): string; toString(): string;
} }
@ -146,6 +146,10 @@ export declare class BaseException extends Error {
export declare function bind(token: any): ProviderBuilder; export declare function bind(token: any): ProviderBuilder;
export declare class Binding extends Provider { export declare class Binding extends Provider {
toAlias: any;
toClass: Type;
toFactory: Function;
toValue: any;
constructor(token: any, {toClass, toValue, toAlias, toFactory, deps, multi}: { constructor(token: any, {toClass, toValue, toAlias, toFactory, deps, multi}: {
toClass?: Type; toClass?: Type;
toValue?: any; toValue?: any;
@ -154,10 +158,6 @@ export declare class Binding extends Provider {
deps?: Object[]; deps?: Object[];
multi?: boolean; multi?: boolean;
}); });
toClass: Type;
toAlias: any;
toFactory: Function;
toValue: any;
} }
export declare enum ChangeDetectionStrategy { export declare enum ChangeDetectionStrategy {
@ -170,26 +170,26 @@ export declare enum ChangeDetectionStrategy {
} }
export declare abstract class ChangeDetectorRef { export declare abstract class ChangeDetectorRef {
abstract markForCheck(): void; abstract checkNoChanges(): void;
abstract detach(): void; abstract detach(): void;
abstract detectChanges(): void; abstract detectChanges(): void;
abstract checkNoChanges(): void; abstract markForCheck(): void;
abstract reattach(): void; abstract reattach(): void;
} }
export declare function Class(clsDef: ClassDefinition): ConcreteType; export declare function Class(clsDef: ClassDefinition): ConcreteType;
export interface ClassDefinition { export interface ClassDefinition {
extends?: Type;
constructor: Function | any[]; constructor: Function | any[];
extends?: Type;
[x: string]: Type | Function | any[]; [x: string]: Type | Function | any[];
} }
export declare class CollectionChangeRecord { export declare class CollectionChangeRecord {
item: any;
trackById: any;
currentIndex: number; currentIndex: number;
item: any;
previousIndex: number; previousIndex: number;
trackById: any;
constructor(item: any, trackById: any); constructor(item: any, trackById: any);
toString(): string; toString(): string;
} }
@ -211,31 +211,31 @@ export interface ComponentDecorator extends TypeDecorator {
} }
export declare class ComponentFactory<C> { export declare class ComponentFactory<C> {
componentType: Type;
selector: string; selector: string;
constructor(selector: string, _viewFactory: Function, _componentType: Type); constructor(selector: string, _viewFactory: Function, _componentType: Type);
componentType: Type;
create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any): ComponentRef<C>; create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any): ComponentRef<C>;
} }
export declare abstract class ComponentFactoryResolver { export declare abstract class ComponentFactoryResolver {
static NULL: ComponentFactoryResolver;
abstract resolveComponentFactory<T>(component: ClassWithConstructor<T>): ComponentFactory<T>; abstract resolveComponentFactory<T>(component: ClassWithConstructor<T>): ComponentFactory<T>;
static NULL: ComponentFactoryResolver;
} }
export declare class ComponentMetadata extends DirectiveMetadata { export declare class ComponentMetadata extends DirectiveMetadata {
changeDetection: ChangeDetectionStrategy;
viewProviders: any[];
moduleId: string;
templateUrl: string;
template: string;
styleUrls: string[];
styles: string[];
animations: AnimationEntryMetadata[]; animations: AnimationEntryMetadata[];
changeDetection: ChangeDetectionStrategy;
directives: Array<Type | any[]>; directives: Array<Type | any[]>;
pipes: Array<Type | any[]>;
encapsulation: ViewEncapsulation; encapsulation: ViewEncapsulation;
interpolation: [string, string]; interpolation: [string, string];
moduleId: string;
pipes: Array<Type | any[]>;
precompile: Array<Type | any[]>; precompile: Array<Type | any[]>;
styleUrls: string[];
styles: string[];
template: string;
templateUrl: string;
viewProviders: any[];
constructor({selector, inputs, outputs, properties, events, host, exportAs, moduleId, providers, viewProviders, changeDetection, queries, templateUrl, template, styleUrls, styles, animations, directives, pipes, encapsulation, interpolation, precompile}?: { constructor({selector, inputs, outputs, properties, events, host, exportAs, moduleId, providers, viewProviders, changeDetection, queries, templateUrl, template, styleUrls, styles, animations, directives, pipes, encapsulation, interpolation, precompile}?: {
selector?: string; selector?: string;
inputs?: string[]; inputs?: string[];
@ -324,19 +324,19 @@ export interface ComponentMetadataFactory {
} }
export declare abstract class ComponentRef<C> { export declare abstract class ComponentRef<C> {
location: ElementRef;
injector: Injector;
instance: C;
hostView: ViewRef;
changeDetectorRef: ChangeDetectorRef; changeDetectorRef: ChangeDetectorRef;
componentType: Type; componentType: Type;
hostView: ViewRef;
injector: Injector;
instance: C;
location: ElementRef;
abstract destroy(): void; abstract destroy(): void;
abstract onDestroy(callback: Function): void; abstract onDestroy(callback: Function): void;
} }
export declare abstract class ComponentResolver { export declare abstract class ComponentResolver {
abstract resolveComponent(component: Type | string): Promise<ComponentFactory<any>>;
abstract clearCache(): void; abstract clearCache(): void;
abstract resolveComponent(component: Type | string): Promise<ComponentFactory<any>>;
} }
export declare var ContentChild: ContentChildMetadataFactory; export declare var ContentChild: ContentChildMetadataFactory;
@ -389,62 +389,62 @@ export declare class CyclicDependencyError extends AbstractProviderError {
} }
export declare class DebugElement extends DebugNode { export declare class DebugElement extends DebugNode {
name: string;
properties: {
[key: string]: any;
};
attributes: { attributes: {
[key: string]: string; [key: string]: string;
}; };
childNodes: DebugNode[];
children: DebugElement[];
classes: { classes: {
[key: string]: boolean; [key: string]: boolean;
}; };
name: string;
nativeElement: any;
properties: {
[key: string]: any;
};
styles: { styles: {
[key: string]: string; [key: string]: string;
}; };
childNodes: DebugNode[];
nativeElement: any;
constructor(nativeNode: any, parent: any, _debugInfo: RenderDebugInfo); constructor(nativeNode: any, parent: any, _debugInfo: RenderDebugInfo);
addChild(child: DebugNode): void; addChild(child: DebugNode): void;
removeChild(child: DebugNode): void;
insertChildrenAfter(child: DebugNode, newChildren: DebugNode[]): void; insertChildrenAfter(child: DebugNode, newChildren: DebugNode[]): void;
query(predicate: Predicate<DebugElement>): DebugElement; query(predicate: Predicate<DebugElement>): DebugElement;
queryAll(predicate: Predicate<DebugElement>): DebugElement[]; queryAll(predicate: Predicate<DebugElement>): DebugElement[];
queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[]; queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[];
children: DebugElement[]; removeChild(child: DebugNode): void;
triggerEventHandler(eventName: string, eventObj: any): void; triggerEventHandler(eventName: string, eventObj: any): void;
} }
export declare class DebugNode { export declare class DebugNode {
nativeNode: any;
listeners: EventListener[];
parent: DebugElement;
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
injector: Injector;
componentInstance: any; componentInstance: any;
context: any; context: any;
injector: Injector;
listeners: EventListener[];
nativeNode: any;
parent: DebugElement;
providerTokens: any[];
references: { references: {
[key: string]: any; [key: string]: any;
}; };
providerTokens: any[];
source: string; source: string;
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
inject(token: any): any; inject(token: any): any;
} }
export declare class DefaultIterableDiffer implements IterableDiffer { export declare class DefaultIterableDiffer implements IterableDiffer {
constructor(_trackByFn?: TrackByFn);
collection: any; collection: any;
length: number;
forEachItem(fn: Function): void;
forEachPreviousItem(fn: Function): void;
forEachAddedItem(fn: Function): void;
forEachMovedItem(fn: Function): void;
forEachRemovedItem(fn: Function): void;
forEachIdentityChange(fn: Function): void;
diff(collection: any): DefaultIterableDiffer;
onDestroy(): void;
check(collection: any): boolean;
isDirty: boolean; isDirty: boolean;
length: number;
constructor(_trackByFn?: TrackByFn);
check(collection: any): boolean;
diff(collection: any): DefaultIterableDiffer;
forEachAddedItem(fn: Function): void;
forEachIdentityChange(fn: Function): void;
forEachItem(fn: Function): void;
forEachMovedItem(fn: Function): void;
forEachPreviousItem(fn: Function): void;
forEachRemovedItem(fn: Function): void;
onDestroy(): void;
toString(): string; toString(): string;
} }
@ -454,19 +454,19 @@ export interface DirectiveDecorator extends TypeDecorator {
} }
export declare class DirectiveMetadata extends InjectableMetadata { export declare class DirectiveMetadata extends InjectableMetadata {
selector: string;
inputs: string[];
properties: string[];
outputs: string[];
events: string[]; events: string[];
exportAs: string;
host: { host: {
[key: string]: string; [key: string]: string;
}; };
inputs: string[];
outputs: string[];
properties: string[];
providers: any[]; providers: any[];
exportAs: string;
queries: { queries: {
[key: string]: any; [key: string]: any;
}; };
selector: string;
constructor({selector, inputs, outputs, properties, events, host, providers, exportAs, queries}?: { constructor({selector, inputs, outputs, properties, events, host, providers, exportAs, queries}?: {
selector?: string; selector?: string;
inputs?: string[]; inputs?: string[];
@ -549,8 +549,8 @@ export declare class EventEmitter<T> extends Subject<T> {
export declare class ExceptionHandler { export declare class ExceptionHandler {
constructor(_logger: any, _rethrowException?: boolean); constructor(_logger: any, _rethrowException?: boolean);
static exceptionToString(exception: any, stackTrace?: any, reason?: string): string;
call(exception: any, stackTrace?: any, reason?: string): void; call(exception: any, stackTrace?: any, reason?: string): void;
static exceptionToString(exception: any, stackTrace?: any, reason?: string): string;
} }
export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException { export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {
@ -591,8 +591,8 @@ export interface HostBindingMetadataFactory {
export declare var HostListener: HostListenerMetadataFactory; export declare var HostListener: HostListenerMetadataFactory;
export declare class HostListenerMetadata { export declare class HostListenerMetadata {
eventName: string;
args: string[]; args: string[];
eventName: string;
constructor(eventName: string, args?: string[]); constructor(eventName: string, args?: string[]);
} }
@ -635,8 +635,8 @@ export interface InjectMetadataFactory {
} }
export declare abstract class Injector { export declare abstract class Injector {
static THROW_IF_NOT_FOUND: Object;
get(token: any, notFoundValue?: any): any; get(token: any, notFoundValue?: any): any;
static THROW_IF_NOT_FOUND: Object;
} }
export declare var Input: InputMetadataFactory; export declare var Input: InputMetadataFactory;
@ -653,11 +653,11 @@ export interface InputMetadataFactory {
} }
export declare class InstantiationError extends WrappedException { export declare class InstantiationError extends WrappedException {
constructor(injector: ReflectiveInjector, originalException: any, originalStack: any, key: ReflectiveKey);
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
wrapperMessage: string;
causeKey: ReflectiveKey; causeKey: ReflectiveKey;
context: any; context: any;
wrapperMessage: string;
constructor(injector: ReflectiveInjector, originalException: any, originalStack: any, key: ReflectiveKey);
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
} }
export declare class InvalidProviderError extends BaseException { export declare class InvalidProviderError extends BaseException {
@ -672,24 +672,24 @@ export interface IterableDiffer {
} }
export interface IterableDifferFactory { export interface IterableDifferFactory {
supports(objects: any): boolean;
create(cdRef: ChangeDetectorRef, trackByFn?: TrackByFn): IterableDiffer; create(cdRef: ChangeDetectorRef, trackByFn?: TrackByFn): IterableDiffer;
supports(objects: any): boolean;
} }
export declare class IterableDiffers { export declare class IterableDiffers {
factories: IterableDifferFactory[]; factories: IterableDifferFactory[];
constructor(factories: IterableDifferFactory[]); constructor(factories: IterableDifferFactory[]);
find(iterable: any): IterableDifferFactory;
static create(factories: IterableDifferFactory[], parent?: IterableDiffers): IterableDiffers; static create(factories: IterableDifferFactory[], parent?: IterableDiffers): IterableDiffers;
static extend(factories: IterableDifferFactory[]): Provider; static extend(factories: IterableDifferFactory[]): Provider;
find(iterable: any): IterableDifferFactory;
} }
export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata; export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
export declare class KeyValueChangeRecord { export declare class KeyValueChangeRecord {
currentValue: any;
key: any; key: any;
previousValue: any; previousValue: any;
currentValue: any;
constructor(key: any); constructor(key: any);
toString(): string; toString(): string;
} }
@ -700,37 +700,37 @@ export interface KeyValueDiffer {
} }
export interface KeyValueDifferFactory { export interface KeyValueDifferFactory {
supports(objects: any): boolean;
create(cdRef: ChangeDetectorRef): KeyValueDiffer; create(cdRef: ChangeDetectorRef): KeyValueDiffer;
supports(objects: any): boolean;
} }
export declare class KeyValueDiffers { export declare class KeyValueDiffers {
factories: KeyValueDifferFactory[]; factories: KeyValueDifferFactory[];
constructor(factories: KeyValueDifferFactory[]); constructor(factories: KeyValueDifferFactory[]);
find(kv: Object): KeyValueDifferFactory;
static create(factories: KeyValueDifferFactory[], parent?: KeyValueDiffers): KeyValueDiffers; static create(factories: KeyValueDifferFactory[], parent?: KeyValueDiffers): KeyValueDiffers;
static extend(factories: KeyValueDifferFactory[]): Provider; static extend(factories: KeyValueDifferFactory[]): Provider;
find(kv: Object): KeyValueDifferFactory;
} }
export declare function lockRunMode(): void; export declare function lockRunMode(): void;
export declare class NgZone { export declare class NgZone {
static isInAngularZone(): boolean; hasPendingMacrotasks: boolean;
static assertInAngularZone(): void; hasPendingMicrotasks: boolean;
static assertNotInAngularZone(): void; isStable: boolean;
onError: EventEmitter<any>;
onMicrotaskEmpty: EventEmitter<any>;
onStable: EventEmitter<any>;
onUnstable: EventEmitter<any>;
constructor({enableLongStackTrace}: { constructor({enableLongStackTrace}: {
enableLongStackTrace?: boolean; enableLongStackTrace?: boolean;
}); });
onUnstable: EventEmitter<any>;
onMicrotaskEmpty: EventEmitter<any>;
onStable: EventEmitter<any>;
onError: EventEmitter<any>;
isStable: boolean;
hasPendingMicrotasks: boolean;
hasPendingMacrotasks: boolean;
run(fn: () => any): any; run(fn: () => any): any;
runGuarded(fn: () => any): any; runGuarded(fn: () => any): any;
runOutsideAngular(fn: () => any): any; runOutsideAngular(fn: () => any): any;
static assertInAngularZone(): void;
static assertNotInAngularZone(): void;
static isInAngularZone(): boolean;
} }
export declare class NgZoneError { export declare class NgZoneError {
@ -802,11 +802,11 @@ export declare var Pipe: PipeMetadataFactory;
export declare class PipeMetadata extends InjectableMetadata { export declare class PipeMetadata extends InjectableMetadata {
name: string; name: string;
pure: boolean;
constructor({name, pure}: { constructor({name, pure}: {
name: string; name: string;
pure?: boolean; pure?: boolean;
}); });
pure: boolean;
} }
export interface PipeMetadataFactory { export interface PipeMetadataFactory {
@ -833,10 +833,10 @@ export declare const PLATFORM_INITIALIZER: any;
export declare const PLATFORM_PIPES: OpaqueToken; export declare const PLATFORM_PIPES: OpaqueToken;
export declare abstract class PlatformRef { export declare abstract class PlatformRef {
abstract registerDisposeListener(dispose: () => void): void; disposed: boolean;
injector: Injector; injector: Injector;
abstract dispose(): void; abstract dispose(): void;
disposed: boolean; abstract registerDisposeListener(dispose: () => void): void;
} }
export declare function provide(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: { export declare function provide(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: {
@ -849,12 +849,13 @@ export declare function provide(token: any, {useClass, useValue, useExisting, us
}): Provider; }): Provider;
export declare class Provider { export declare class Provider {
dependencies: Object[];
multi: boolean;
token: any; token: any;
useClass: Type; useClass: Type;
useValue: any;
useExisting: any; useExisting: any;
useFactory: Function; useFactory: Function;
dependencies: Object[]; useValue: any;
constructor(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: { constructor(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: {
useClass?: Type; useClass?: Type;
useValue?: any; useValue?: any;
@ -863,51 +864,50 @@ export declare class Provider {
deps?: Object[]; deps?: Object[];
multi?: boolean; multi?: boolean;
}); });
multi: boolean;
} }
export declare class ProviderBuilder { export declare class ProviderBuilder {
token: any; token: any;
constructor(token: any); constructor(token: any);
toClass(type: Type): Provider;
toValue(value: any): Provider;
toAlias(aliasToken: any): Provider; toAlias(aliasToken: any): Provider;
toClass(type: Type): Provider;
toFactory(factory: Function, dependencies?: any[]): Provider; toFactory(factory: Function, dependencies?: any[]): Provider;
toValue(value: any): Provider;
} }
export declare var Query: QueryMetadataFactory; export declare var Query: QueryMetadataFactory;
export declare class QueryList<T> { export declare class QueryList<T> {
changes: Observable<any>; changes: Observable<any>;
length: number; dirty: boolean;
first: T; first: T;
last: T; last: T;
map<U>(fn: (item: T, index: number, array: T[]) => U): U[]; length: number;
filter(fn: (item: T, index: number, array: T[]) => boolean): T[]; filter(fn: (item: T, index: number, array: T[]) => boolean): T[];
reduce<U>(fn: (prevValue: U, curValue: T, curIndex: number, array: T[]) => U, init: U): U;
forEach(fn: (item: T, index: number, array: T[]) => void): void; forEach(fn: (item: T, index: number, array: T[]) => void): void;
map<U>(fn: (item: T, index: number, array: T[]) => U): U[];
notifyOnChanges(): void;
reduce<U>(fn: (prevValue: U, curValue: T, curIndex: number, array: T[]) => U, init: U): U;
reset(res: Array<T | any[]>): void;
setDirty(): void;
some(fn: (value: T, index: number, array: T[]) => boolean): boolean; some(fn: (value: T, index: number, array: T[]) => boolean): boolean;
toArray(): T[]; toArray(): T[];
toString(): string; toString(): string;
reset(res: Array<T | any[]>): void;
notifyOnChanges(): void;
setDirty(): void;
dirty: boolean;
} }
export declare class QueryMetadata extends DependencyMetadata { export declare class QueryMetadata extends DependencyMetadata {
descendants: boolean; descendants: boolean;
first: boolean; first: boolean;
isVarBindingQuery: boolean;
isViewQuery: boolean;
read: any; read: any;
selector: any;
varBindings: string[];
constructor(_selector: Type | string, {descendants, first, read}?: { constructor(_selector: Type | string, {descendants, first, read}?: {
descendants?: boolean; descendants?: boolean;
first?: boolean; first?: boolean;
read?: any; read?: any;
}); });
isViewQuery: boolean;
selector: any;
isVarBindingQuery: boolean;
varBindings: string[];
toString(): string; toString(): string;
} }
@ -923,70 +923,70 @@ export interface QueryMetadataFactory {
} }
export declare abstract class ReflectiveInjector implements Injector { export declare abstract class ReflectiveInjector implements Injector {
parent: Injector;
createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
abstract get(token: any, notFoundValue?: any): any;
instantiateResolved(provider: ResolvedReflectiveProvider): any;
resolveAndCreateChild(providers: Array<Type | Provider | {
[k: string]: any;
} | any[]>): ReflectiveInjector;
resolveAndInstantiate(provider: Type | Provider): any;
static fromResolvedBindings(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
static fromResolvedProviders(providers: ResolvedReflectiveProvider[], parent?: Injector): ReflectiveInjector;
static resolve(providers: Array<Type | Provider | { static resolve(providers: Array<Type | Provider | {
[k: string]: any; [k: string]: any;
} | any[]>): ResolvedReflectiveProvider[]; } | any[]>): ResolvedReflectiveProvider[];
static resolveAndCreate(providers: Array<Type | Provider | { static resolveAndCreate(providers: Array<Type | Provider | {
[k: string]: any; [k: string]: any;
} | any[]>, parent?: Injector): ReflectiveInjector; } | any[]>, parent?: Injector): ReflectiveInjector;
static fromResolvedProviders(providers: ResolvedReflectiveProvider[], parent?: Injector): ReflectiveInjector;
static fromResolvedBindings(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
parent: Injector;
resolveAndCreateChild(providers: Array<Type | Provider | {
[k: string]: any;
} | any[]>): ReflectiveInjector;
createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
resolveAndInstantiate(provider: Type | Provider): any;
instantiateResolved(provider: ResolvedReflectiveProvider): any;
abstract get(token: any, notFoundValue?: any): any;
} }
export declare class ReflectiveKey { export declare class ReflectiveKey {
token: Object;
id: number;
constructor(token: Object, id: number);
displayName: string; displayName: string;
static get(token: Object): ReflectiveKey; id: number;
token: Object;
constructor(token: Object, id: number);
static numberOfKeys: number; static numberOfKeys: number;
static get(token: Object): ReflectiveKey;
} }
export declare class RenderComponentType { export declare class RenderComponentType {
id: string;
templateUrl: string;
slotCount: number;
encapsulation: ViewEncapsulation; encapsulation: ViewEncapsulation;
id: string;
slotCount: number;
styles: Array<string | any[]>; styles: Array<string | any[]>;
templateUrl: string;
constructor(id: string, templateUrl: string, slotCount: number, encapsulation: ViewEncapsulation, styles: Array<string | any[]>); constructor(id: string, templateUrl: string, slotCount: number, encapsulation: ViewEncapsulation, styles: Array<string | any[]>);
} }
export declare abstract class Renderer { export declare abstract class Renderer {
abstract selectRootElement(selectorOrNode: string | any, debugInfo?: RenderDebugInfo): any; abstract animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string): AnimationPlayer;
abstract attachViewAfter(node: any, viewRootNodes: any[]): void;
abstract createElement(parentElement: any, name: string, debugInfo?: RenderDebugInfo): any; abstract createElement(parentElement: any, name: string, debugInfo?: RenderDebugInfo): any;
abstract createViewRoot(hostElement: any): any;
abstract createTemplateAnchor(parentElement: any, debugInfo?: RenderDebugInfo): any; abstract createTemplateAnchor(parentElement: any, debugInfo?: RenderDebugInfo): any;
abstract createText(parentElement: any, value: string, debugInfo?: RenderDebugInfo): any; abstract createText(parentElement: any, value: string, debugInfo?: RenderDebugInfo): any;
abstract projectNodes(parentElement: any, nodes: any[]): void; abstract createViewRoot(hostElement: any): any;
abstract attachViewAfter(node: any, viewRootNodes: any[]): void;
abstract detachView(viewRootNodes: any[]): void;
abstract destroyView(hostElement: any, viewAllNodes: any[]): void; abstract destroyView(hostElement: any, viewAllNodes: any[]): void;
abstract detachView(viewRootNodes: any[]): void;
abstract invokeElementMethod(renderElement: any, methodName: string, args?: any[]): any;
abstract listen(renderElement: any, name: string, callback: Function): Function; abstract listen(renderElement: any, name: string, callback: Function): Function;
abstract listenGlobal(target: string, name: string, callback: Function): Function; abstract listenGlobal(target: string, name: string, callback: Function): Function;
abstract setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void; abstract projectNodes(parentElement: any, nodes: any[]): void;
abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void; abstract selectRootElement(selectorOrNode: string | any, debugInfo?: RenderDebugInfo): any;
abstract setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void; abstract setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void;
abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void;
abstract setElementClass(renderElement: any, className: string, isAdd: boolean): any; abstract setElementClass(renderElement: any, className: string, isAdd: boolean): any;
abstract setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void;
abstract setElementStyle(renderElement: any, styleName: string, styleValue: string): any; abstract setElementStyle(renderElement: any, styleName: string, styleValue: string): any;
abstract invokeElementMethod(renderElement: any, methodName: string, args?: any[]): any;
abstract setText(renderNode: any, text: string): any; abstract setText(renderNode: any, text: string): any;
abstract animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string): AnimationPlayer;
} }
export interface ResolvedReflectiveBinding extends ResolvedReflectiveProvider { export interface ResolvedReflectiveBinding extends ResolvedReflectiveProvider {
} }
export declare class ResolvedReflectiveFactory { export declare class ResolvedReflectiveFactory {
factory: Function;
dependencies: ReflectiveDependency[]; dependencies: ReflectiveDependency[];
factory: Function;
constructor( constructor(
factory: Function, factory: Function,
dependencies: ReflectiveDependency[]); dependencies: ReflectiveDependency[]);
@ -994,8 +994,8 @@ export declare class ResolvedReflectiveFactory {
export interface ResolvedReflectiveProvider { export interface ResolvedReflectiveProvider {
key: ReflectiveKey; key: ReflectiveKey;
resolvedFactories: ResolvedReflectiveFactory[];
multiProvider: boolean; multiProvider: boolean;
resolvedFactories: ResolvedReflectiveFactory[];
} }
export declare function resolveForwardRef(type: any): any; export declare function resolveForwardRef(type: any): any;
@ -1020,8 +1020,8 @@ export declare function sequence(steps: AnimationMetadata[]): AnimationSequenceM
export declare function setTestabilityGetter(getter: GetTestability): void; export declare function setTestabilityGetter(getter: GetTestability): void;
export declare class SimpleChange { export declare class SimpleChange {
previousValue: any;
currentValue: any; currentValue: any;
previousValue: any;
constructor(previousValue: any, currentValue: any); constructor(previousValue: any, currentValue: any);
isFirstChange(): boolean; isFirstChange(): boolean;
} }
@ -1050,14 +1050,14 @@ export declare function style(tokens: string | {
}>): AnimationStyleMetadata; }>): AnimationStyleMetadata;
export declare class SystemJsCmpFactoryResolver implements ComponentResolver { export declare class SystemJsCmpFactoryResolver implements ComponentResolver {
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
clearCache(): void; clearCache(): void;
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
} }
export declare class SystemJsComponentResolver implements ComponentResolver { export declare class SystemJsComponentResolver implements ComponentResolver {
constructor(_resolver: ComponentResolver); constructor(_resolver: ComponentResolver);
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
clearCache(): void; clearCache(): void;
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
} }
export declare abstract class TemplateRef<C> { export declare abstract class TemplateRef<C> {
@ -1067,22 +1067,22 @@ export declare abstract class TemplateRef<C> {
export declare class Testability { export declare class Testability {
constructor(_ngZone: NgZone); constructor(_ngZone: NgZone);
increasePendingRequestCount(): number;
decreasePendingRequestCount(): number; decreasePendingRequestCount(): number;
isStable(): boolean;
whenStable(callback: Function): void;
getPendingRequestCount(): number;
findBindings(using: any, provider: string, exactMatch: boolean): any[]; findBindings(using: any, provider: string, exactMatch: boolean): any[];
findProviders(using: any, provider: string, exactMatch: boolean): any[]; findProviders(using: any, provider: string, exactMatch: boolean): any[];
getPendingRequestCount(): number;
increasePendingRequestCount(): number;
isStable(): boolean;
whenStable(callback: Function): void;
} }
export declare class TestabilityRegistry { export declare class TestabilityRegistry {
constructor(); constructor();
registerApplication(token: any, testability: Testability): void;
getTestability(elem: any): Testability;
getAllTestabilities(): Testability[];
getAllRootElements(): any[];
findTestabilityInTree(elem: Node, findInAncestors?: boolean): Testability; findTestabilityInTree(elem: Node, findInAncestors?: boolean): Testability;
getAllRootElements(): any[];
getAllTestabilities(): Testability[];
getTestability(elem: any): Testability;
registerApplication(token: any, testability: Testability): void;
} }
export interface TrackByFn { export interface TrackByFn {
@ -1096,9 +1096,9 @@ export declare function trigger(name: string, animation: AnimationMetadata[]): A
export declare var Type: FunctionConstructor; export declare var Type: FunctionConstructor;
export interface TypeDecorator { export interface TypeDecorator {
<T extends Type>(type: T): T;
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void;
annotations: any[]; annotations: any[];
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void;
<T extends Type>(type: T): T;
Class(obj: ClassDefinition): ConcreteType; Class(obj: ClassDefinition): ConcreteType;
} }
@ -1139,16 +1139,16 @@ export interface ViewChildrenMetadataFactory {
export declare abstract class ViewContainerRef { export declare abstract class ViewContainerRef {
element: ElementRef; element: ElementRef;
injector: Injector; injector: Injector;
length: number;
parentInjector: Injector; parentInjector: Injector;
abstract clear(): void; abstract clear(): void;
abstract get(index: number): ViewRef;
length: number;
abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, index?: number): EmbeddedViewRef<C>;
abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][]): ComponentRef<C>; abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][]): ComponentRef<C>;
abstract insert(viewRef: ViewRef, index?: number): ViewRef; abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, index?: number): EmbeddedViewRef<C>;
abstract indexOf(viewRef: ViewRef): number;
abstract remove(index?: number): void;
abstract detach(index?: number): ViewRef; abstract detach(index?: number): ViewRef;
abstract get(index: number): ViewRef;
abstract indexOf(viewRef: ViewRef): number;
abstract insert(viewRef: ViewRef, index?: number): ViewRef;
abstract remove(index?: number): void;
} }
export interface ViewDecorator extends TypeDecorator { export interface ViewDecorator extends TypeDecorator {
@ -1172,15 +1172,15 @@ export declare enum ViewEncapsulation {
} }
export declare class ViewMetadata { export declare class ViewMetadata {
templateUrl: string; animations: AnimationEntryMetadata[];
template: string; directives: Array<Type | any[]>;
encapsulation: ViewEncapsulation;
interpolation: [string, string];
pipes: Array<Type | any[]>;
styleUrls: string[]; styleUrls: string[];
styles: string[]; styles: string[];
directives: Array<Type | any[]>; template: string;
pipes: Array<Type | any[]>; templateUrl: string;
encapsulation: ViewEncapsulation;
animations: AnimationEntryMetadata[];
interpolation: [string, string];
constructor({templateUrl, template, directives, pipes, encapsulation, styles, styleUrls, animations, interpolation}?: { constructor({templateUrl, template, directives, pipes, encapsulation, styles, styleUrls, animations, interpolation}?: {
templateUrl?: string; templateUrl?: string;
template?: string; template?: string;
@ -1222,12 +1222,12 @@ export interface ViewMetadataFactory {
export declare var ViewQuery: QueryMetadataFactory; export declare var ViewQuery: QueryMetadataFactory;
export declare class ViewQueryMetadata extends QueryMetadata { export declare class ViewQueryMetadata extends QueryMetadata {
isViewQuery: boolean;
constructor(_selector: Type | string, {descendants, first, read}?: { constructor(_selector: Type | string, {descendants, first, read}?: {
descendants?: boolean; descendants?: boolean;
first?: boolean; first?: boolean;
read?: any; read?: any;
}); });
isViewQuery: boolean;
toString(): string; toString(): string;
} }
@ -1237,13 +1237,13 @@ export declare abstract class ViewRef {
} }
export declare class WrappedException extends BaseWrappedException { export declare class WrappedException extends BaseWrappedException {
constructor(_wrapperMessage: string, _originalException: any, _originalStack?: any, _context?: any);
wrapperMessage: string;
wrapperStack: any;
originalException: any;
originalStack: any;
context: any; context: any;
message: string; message: string;
originalException: any;
originalStack: any;
wrapperMessage: string;
wrapperStack: any;
constructor(_wrapperMessage: string, _originalException: any, _originalStack?: any, _context?: any);
toString(): string; toString(): string;
} }

View File

@ -40,13 +40,13 @@ export declare function resetBaseTestProviders(): void;
export declare function setBaseTestProviders(platformProviders: Array<Type | Provider | any[]>, applicationProviders: Array<Type | Provider | any[]>): void; export declare function setBaseTestProviders(platformProviders: Array<Type | Provider | any[]>, applicationProviders: Array<Type | Provider | any[]>): void;
export declare class TestInjector { export declare class TestInjector {
reset(): void;
platformProviders: Array<Type | Provider | any[] | any>;
applicationProviders: Array<Type | Provider | any[] | any>; applicationProviders: Array<Type | Provider | any[] | any>;
platformProviders: Array<Type | Provider | any[] | any>;
addProviders(providers: Array<Type | Provider | any[] | any>): void; addProviders(providers: Array<Type | Provider | any[] | any>): void;
createInjector(): ReflectiveInjector; createInjector(): ReflectiveInjector;
get(token: any): any;
execute(tokens: any[], fn: Function): any; execute(tokens: any[], fn: Function): any;
get(token: any): any;
reset(): void;
} }
export declare function tick(millis?: number): void; export declare function tick(millis?: number): void;

View File

@ -1,100 +1,100 @@
export declare abstract class AbstractControl { export declare abstract class AbstractControl {
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
constructor(validator: ValidatorFn, asyncValidator: AsyncValidatorFn); dirty: boolean;
value: any;
status: string;
valid: boolean;
errors: { errors: {
[key: string]: any; [key: string]: any;
}; };
pending: boolean;
pristine: boolean; pristine: boolean;
dirty: boolean; root: AbstractControl;
status: string;
statusChanges: Observable<any>;
touched: boolean; touched: boolean;
untouched: boolean; untouched: boolean;
valid: boolean;
validator: ValidatorFn;
value: any;
valueChanges: Observable<any>; valueChanges: Observable<any>;
statusChanges: Observable<any>; constructor(validator: ValidatorFn, asyncValidator: AsyncValidatorFn);
pending: boolean;
setAsyncValidators(newValidator: AsyncValidatorFn | AsyncValidatorFn[]): void;
clearAsyncValidators(): void; clearAsyncValidators(): void;
setValidators(newValidator: ValidatorFn | ValidatorFn[]): void;
clearValidators(): void; clearValidators(): void;
markAsTouched(): void; find(path: Array<string | number> | string): AbstractControl;
getError(errorCode: string, path?: string[]): any;
hasError(errorCode: string, path?: string[]): boolean;
markAsDirty({onlySelf}?: { markAsDirty({onlySelf}?: {
onlySelf?: boolean; onlySelf?: boolean;
}): void; }): void;
markAsPending({onlySelf}?: { markAsPending({onlySelf}?: {
onlySelf?: boolean; onlySelf?: boolean;
}): void; }): void;
setParent(parent: FormGroup | FormArray): void; markAsTouched(): void;
updateValueAndValidity({onlySelf, emitEvent}?: { setAsyncValidators(newValidator: AsyncValidatorFn | AsyncValidatorFn[]): void;
onlySelf?: boolean;
emitEvent?: boolean;
}): void;
setErrors(errors: { setErrors(errors: {
[key: string]: any; [key: string]: any;
}, {emitEvent}?: { }, {emitEvent}?: {
emitEvent?: boolean; emitEvent?: boolean;
}): void; }): void;
find(path: Array<string | number> | string): AbstractControl; setParent(parent: FormGroup | FormArray): void;
getError(errorCode: string, path?: string[]): any; setValidators(newValidator: ValidatorFn | ValidatorFn[]): void;
hasError(errorCode: string, path?: string[]): boolean; updateValueAndValidity({onlySelf, emitEvent}?: {
root: AbstractControl; onlySelf?: boolean;
emitEvent?: boolean;
}): void;
} }
export declare abstract class AbstractControlDirective { export declare abstract class AbstractControlDirective {
control: AbstractControl; control: AbstractControl;
value: any; dirty: boolean;
valid: boolean;
errors: { errors: {
[key: string]: any; [key: string]: any;
}; };
path: string[];
pristine: boolean; pristine: boolean;
dirty: boolean;
touched: boolean; touched: boolean;
untouched: boolean; untouched: boolean;
path: string[]; valid: boolean;
value: any;
} }
export declare class CheckboxControlValueAccessor implements ControlValueAccessor { export declare class CheckboxControlValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
constructor(_renderer: Renderer, _elementRef: ElementRef); constructor(_renderer: Renderer, _elementRef: ElementRef);
writeValue(value: any): void;
registerOnChange(fn: (_: any) => {}): void; registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void; registerOnTouched(fn: () => {}): void;
writeValue(value: any): void;
} }
export declare class ControlContainer extends AbstractControlDirective { export declare class ControlContainer extends AbstractControlDirective {
name: string;
formDirective: Form; formDirective: Form;
name: string;
path: string[]; path: string[];
} }
export interface ControlValueAccessor { export interface ControlValueAccessor {
writeValue(obj: any): void;
registerOnChange(fn: any): void; registerOnChange(fn: any): void;
registerOnTouched(fn: any): void; registerOnTouched(fn: any): void;
writeValue(obj: any): void;
} }
export declare class DefaultValueAccessor implements ControlValueAccessor { export declare class DefaultValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
constructor(_renderer: Renderer, _elementRef: ElementRef); constructor(_renderer: Renderer, _elementRef: ElementRef);
writeValue(value: any): void;
registerOnChange(fn: (_: any) => void): void; registerOnChange(fn: (_: any) => void): void;
registerOnTouched(fn: () => void): void; registerOnTouched(fn: () => void): void;
writeValue(value: any): void;
} }
export declare function disableDeprecatedForms(): any[]; export declare function disableDeprecatedForms(): any[];
export interface Form { export interface Form {
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
removeControl(dir: NgControl): void;
getControl(dir: NgControl): FormControl;
addFormGroup(dir: AbstractFormGroupDirective): void; addFormGroup(dir: AbstractFormGroupDirective): void;
removeFormGroup(dir: AbstractFormGroupDirective): void; getControl(dir: NgControl): FormControl;
getFormGroup(dir: AbstractFormGroupDirective): FormGroup; getFormGroup(dir: AbstractFormGroupDirective): FormGroup;
removeControl(dir: NgControl): void;
removeFormGroup(dir: AbstractFormGroupDirective): void;
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
@ -104,61 +104,61 @@ export declare const FORM_PROVIDERS: Type[];
export declare class FormArray extends AbstractControl { export declare class FormArray extends AbstractControl {
controls: AbstractControl[]; controls: AbstractControl[];
length: number;
constructor(controls: AbstractControl[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn); constructor(controls: AbstractControl[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
at(index: number): AbstractControl; at(index: number): AbstractControl;
push(control: AbstractControl): void;
insert(index: number, control: AbstractControl): void; insert(index: number, control: AbstractControl): void;
push(control: AbstractControl): void;
removeAt(index: number): void; removeAt(index: number): void;
length: number;
} }
export declare class FormBuilder { export declare class FormBuilder {
array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): FormArray;
control(value: Object, validator?: ValidatorFn | ValidatorFn[], asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]): FormControl;
group(controlsConfig: { group(controlsConfig: {
[key: string]: any; [key: string]: any;
}, extra?: { }, extra?: {
[key: string]: any; [key: string]: any;
}): FormGroup; }): FormGroup;
control(value: Object, validator?: ValidatorFn | ValidatorFn[], asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]): FormControl;
array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): FormArray;
} }
export declare class FormControl extends AbstractControl { export declare class FormControl extends AbstractControl {
constructor(value?: any, validator?: ValidatorFn | ValidatorFn[], asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]); constructor(value?: any, validator?: ValidatorFn | ValidatorFn[], asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]);
registerOnChange(fn: Function): void;
updateValue(value: any, {onlySelf, emitEvent, emitModelToViewChange}?: { updateValue(value: any, {onlySelf, emitEvent, emitModelToViewChange}?: {
onlySelf?: boolean; onlySelf?: boolean;
emitEvent?: boolean; emitEvent?: boolean;
emitModelToViewChange?: boolean; emitModelToViewChange?: boolean;
}): void; }): void;
registerOnChange(fn: Function): void;
} }
export declare class FormControlDirective extends NgControl implements OnChanges { export declare class FormControlDirective extends NgControl implements OnChanges {
viewModel: any;
form: FormControl;
model: any;
update: EventEmitter<{}>;
constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
ngOnChanges(changes: SimpleChanges): void;
path: string[];
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: FormControl; control: FormControl;
form: FormControl;
model: any;
path: string[];
update: EventEmitter<{}>;
validator: ValidatorFn;
viewModel: any;
constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
ngOnChanges(changes: SimpleChanges): void;
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
export declare class FormControlName extends NgControl implements OnChanges, OnDestroy { export declare class FormControlName extends NgControl implements OnChanges, OnDestroy {
name: string; asyncValidator: AsyncValidatorFn;
control: FormControl;
formDirective: any;
model: any; model: any;
name: string;
path: string[];
update: EventEmitter<{}>; update: EventEmitter<{}>;
validator: ValidatorFn;
constructor(_parent: ControlContainer, _validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]); constructor(_parent: ControlContainer, _validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
ngOnChanges(changes: SimpleChanges): void; ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void; ngOnDestroy(): void;
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
path: string[];
formDirective: any;
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn;
control: FormControl;
} }
export declare class FormGroup extends AbstractControl { export declare class FormGroup extends AbstractControl {
@ -170,32 +170,32 @@ export declare class FormGroup extends AbstractControl {
}, optionals?: { }, optionals?: {
[key: string]: boolean; [key: string]: boolean;
}, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn); }, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
registerControl(name: string, control: AbstractControl): AbstractControl;
addControl(name: string, control: AbstractControl): void; addControl(name: string, control: AbstractControl): void;
removeControl(name: string): void;
include(controlName: string): void;
exclude(controlName: string): void;
contains(controlName: string): boolean; contains(controlName: string): boolean;
exclude(controlName: string): void;
include(controlName: string): void;
registerControl(name: string, control: AbstractControl): AbstractControl;
removeControl(name: string): void;
} }
export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges { export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges {
control: FormGroup;
directives: NgControl[]; directives: NgControl[];
form: FormGroup; form: FormGroup;
ngSubmit: EventEmitter<{}>;
constructor(_validators: any[], _asyncValidators: any[]);
ngOnChanges(changes: SimpleChanges): void;
submitted: boolean;
formDirective: Form; formDirective: Form;
control: FormGroup; ngSubmit: EventEmitter<{}>;
path: string[]; path: string[];
submitted: boolean;
constructor(_validators: any[], _asyncValidators: any[]);
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
getControl(dir: NgControl): FormControl;
removeControl(dir: NgControl): void;
addFormGroup(dir: FormGroupName): void; addFormGroup(dir: FormGroupName): void;
removeFormGroup(dir: FormGroupName): void; getControl(dir: NgControl): FormControl;
getFormGroup(dir: FormGroupName): FormGroup; getFormGroup(dir: FormGroupName): FormGroup;
updateModel(dir: NgControl, value: any): void; ngOnChanges(changes: SimpleChanges): void;
onSubmit(): boolean; onSubmit(): boolean;
removeControl(dir: NgControl): void;
removeFormGroup(dir: FormGroupName): void;
updateModel(dir: NgControl, value: any): void;
} }
export declare class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy { export declare class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy {
@ -224,61 +224,61 @@ export declare const NG_VALIDATORS: OpaqueToken;
export declare const NG_VALUE_ACCESSOR: OpaqueToken; export declare const NG_VALUE_ACCESSOR: OpaqueToken;
export declare abstract class NgControl extends AbstractControlDirective { export declare abstract class NgControl extends AbstractControlDirective {
name: string;
valueAccessor: ControlValueAccessor;
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
name: string;
validator: ValidatorFn;
valueAccessor: ControlValueAccessor;
abstract viewToModelUpdate(newValue: any): void; abstract viewToModelUpdate(newValue: any): void;
} }
export declare class NgControlStatus { export declare class NgControlStatus {
constructor(cd: NgControl);
ngClassUntouched: boolean;
ngClassTouched: boolean;
ngClassPristine: boolean;
ngClassDirty: boolean; ngClassDirty: boolean;
ngClassValid: boolean;
ngClassInvalid: boolean; ngClassInvalid: boolean;
ngClassPristine: boolean;
ngClassTouched: boolean;
ngClassUntouched: boolean;
ngClassValid: boolean;
constructor(cd: NgControl);
} }
export declare class NgForm extends ControlContainer implements Form { export declare class NgForm extends ControlContainer implements Form {
form: FormGroup;
ngSubmit: EventEmitter<{}>;
constructor(validators: any[], asyncValidators: any[]);
submitted: boolean;
formDirective: Form;
control: FormGroup; control: FormGroup;
path: string[];
controls: { controls: {
[key: string]: AbstractControl; [key: string]: AbstractControl;
}; };
form: FormGroup;
formDirective: Form;
ngSubmit: EventEmitter<{}>;
path: string[];
submitted: boolean;
constructor(validators: any[], asyncValidators: any[]);
addControl(dir: NgModel): void; addControl(dir: NgModel): void;
getControl(dir: NgModel): FormControl;
removeControl(dir: NgModel): void;
addFormGroup(dir: NgModelGroup): void; addFormGroup(dir: NgModelGroup): void;
removeFormGroup(dir: NgModelGroup): void; getControl(dir: NgModel): FormControl;
getFormGroup(dir: NgModelGroup): FormGroup; getFormGroup(dir: NgModelGroup): FormGroup;
updateModel(dir: NgControl, value: any): void;
onSubmit(): boolean; onSubmit(): boolean;
removeControl(dir: NgModel): void;
removeFormGroup(dir: NgModelGroup): void;
updateModel(dir: NgControl, value: any): void;
} }
export declare class NgModel extends NgControl implements OnChanges, OnDestroy { export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
viewModel: any; asyncValidator: AsyncValidatorFn;
control: FormControl;
formDirective: any;
model: any; model: any;
name: string; name: string;
options: { options: {
name?: string; name?: string;
standalone?: boolean; standalone?: boolean;
}; };
path: string[];
update: EventEmitter<{}>; update: EventEmitter<{}>;
validator: ValidatorFn;
viewModel: any;
constructor(_parent: ControlContainer, _validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]); constructor(_parent: ControlContainer, _validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
ngOnChanges(changes: SimpleChanges): void; ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void; ngOnDestroy(): void;
control: FormControl;
path: string[];
formDirective: any;
validator: ValidatorFn;
asyncValidator: AsyncValidatorFn;
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
@ -289,9 +289,9 @@ export declare class NgModelGroup extends AbstractFormGroupDirective implements
export declare class NgSelectOption implements OnDestroy { export declare class NgSelectOption implements OnDestroy {
id: string; id: string;
constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor);
ngValue: any; ngValue: any;
value: any; value: any;
constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor);
ngOnDestroy(): void; ngOnDestroy(): void;
} }
@ -310,13 +310,13 @@ export declare class RequiredValidator {
} }
export declare class SelectControlValueAccessor implements ControlValueAccessor { export declare class SelectControlValueAccessor implements ControlValueAccessor {
value: any;
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
value: any;
constructor(_renderer: Renderer, _elementRef: ElementRef); constructor(_renderer: Renderer, _elementRef: ElementRef);
writeValue(value: any): void;
registerOnChange(fn: (value: any) => any): void; registerOnChange(fn: (value: any) => any): void;
registerOnTouched(fn: () => any): void; registerOnTouched(fn: () => any): void;
writeValue(value: any): void;
} }
export interface Validator { export interface Validator {
@ -326,15 +326,15 @@ export interface Validator {
} }
export declare class Validators { export declare class Validators {
static required(control: AbstractControl): { static compose(validators: ValidatorFn[]): ValidatorFn;
[key: string]: boolean; static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn;
};
static minLength(minLength: number): ValidatorFn;
static maxLength(maxLength: number): ValidatorFn; static maxLength(maxLength: number): ValidatorFn;
static pattern(pattern: string): ValidatorFn; static minLength(minLength: number): ValidatorFn;
static nullValidator(c: AbstractControl): { static nullValidator(c: AbstractControl): {
[key: string]: boolean; [key: string]: boolean;
}; };
static compose(validators: ValidatorFn[]): ValidatorFn; static pattern(pattern: string): ValidatorFn;
static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn; static required(control: AbstractControl): {
[key: string]: boolean;
};
} }

View File

@ -30,33 +30,33 @@ export declare class Headers {
constructor(headers?: Headers | { constructor(headers?: Headers | {
[key: string]: any; [key: string]: any;
}); });
static fromResponseHeaderString(headersString: string): Headers;
append(name: string, value: string): void; append(name: string, value: string): void;
delete(name: string): void; delete(name: string): void;
entries(): void;
forEach(fn: (values: string[], name: string, headers: Map<string, string[]>) => void): void; forEach(fn: (values: string[], name: string, headers: Map<string, string[]>) => void): void;
get(header: string): string; get(header: string): string;
getAll(header: string): string[];
has(header: string): boolean; has(header: string): boolean;
keys(): string[]; keys(): string[];
set(header: string, value: string | string[]): void; set(header: string, value: string | string[]): void;
values(): string[][];
toJSON(): { toJSON(): {
[key: string]: any; [key: string]: any;
}; };
getAll(header: string): string[]; values(): string[][];
entries(): void; static fromResponseHeaderString(headersString: string): Headers;
} }
export declare class Http { export declare class Http {
protected _backend: ConnectionBackend; protected _backend: ConnectionBackend;
protected _defaultOptions: RequestOptions; protected _defaultOptions: RequestOptions;
constructor(_backend: ConnectionBackend, _defaultOptions: RequestOptions); constructor(_backend: ConnectionBackend, _defaultOptions: RequestOptions);
request(url: string | Request, options?: RequestOptionsArgs): Observable<Response>; delete(url: string, options?: RequestOptionsArgs): Observable<Response>;
get(url: string, options?: RequestOptionsArgs): Observable<Response>; get(url: string, options?: RequestOptionsArgs): Observable<Response>;
head(url: string, options?: RequestOptionsArgs): Observable<Response>;
patch(url: string, body: any, options?: RequestOptionsArgs): Observable<Response>;
post(url: string, body: any, options?: RequestOptionsArgs): Observable<Response>; post(url: string, body: any, options?: RequestOptionsArgs): Observable<Response>;
put(url: string, body: any, options?: RequestOptionsArgs): Observable<Response>; put(url: string, body: any, options?: RequestOptionsArgs): Observable<Response>;
delete(url: string, options?: RequestOptionsArgs): Observable<Response>; request(url: string | Request, options?: RequestOptionsArgs): Observable<Response>;
patch(url: string, body: any, options?: RequestOptionsArgs): Observable<Response>;
head(url: string, options?: RequestOptionsArgs): Observable<Response>;
} }
export declare const HTTP_BINDINGS: any[]; export declare const HTTP_BINDINGS: any[];
@ -94,17 +94,17 @@ export declare enum ReadyState {
} }
export declare class Request { export declare class Request {
method: RequestMethod;
headers: Headers; headers: Headers;
method: RequestMethod;
url: string; url: string;
withCredentials: boolean; withCredentials: boolean;
constructor(requestOptions: RequestArgs); constructor(requestOptions: RequestArgs);
text(): string;
json(): string;
arrayBuffer(): ArrayBuffer; arrayBuffer(): ArrayBuffer;
blob(): Blob; blob(): Blob;
detectContentType(): ContentType; detectContentType(): ContentType;
getBody(): any; getBody(): any;
json(): string;
text(): string;
} }
export declare enum RequestMethod { export declare enum RequestMethod {
@ -118,46 +118,46 @@ export declare enum RequestMethod {
} }
export declare class RequestOptions { export declare class RequestOptions {
method: RequestMethod | string;
headers: Headers;
body: any; body: any;
url: string; headers: Headers;
method: RequestMethod | string;
search: URLSearchParams; search: URLSearchParams;
url: string;
withCredentials: boolean; withCredentials: boolean;
constructor({method, headers, body, url, search, withCredentials}?: RequestOptionsArgs); constructor({method, headers, body, url, search, withCredentials}?: RequestOptionsArgs);
merge(options?: RequestOptionsArgs): RequestOptions; merge(options?: RequestOptionsArgs): RequestOptions;
} }
export interface RequestOptionsArgs { export interface RequestOptionsArgs {
url?: string; body?: any;
headers?: Headers;
method?: string | RequestMethod; method?: string | RequestMethod;
search?: string | URLSearchParams; search?: string | URLSearchParams;
headers?: Headers; url?: string;
body?: any;
withCredentials?: boolean; withCredentials?: boolean;
} }
export declare class Response { export declare class Response {
type: ResponseType; bytesLoaded: number;
headers: Headers;
ok: boolean; ok: boolean;
url: string;
status: number; status: number;
statusText: string; statusText: string;
bytesLoaded: number;
totalBytes: number; totalBytes: number;
headers: Headers; type: ResponseType;
url: string;
constructor(responseOptions: ResponseOptions); constructor(responseOptions: ResponseOptions);
arrayBuffer(): any;
blob(): any; blob(): any;
json(): any; json(): any;
text(): string; text(): string;
arrayBuffer(): any;
toString(): string; toString(): string;
} }
export declare class ResponseOptions { export declare class ResponseOptions {
body: string | Object; body: string | Object;
status: number;
headers: Headers; headers: Headers;
status: number;
url: string; url: string;
constructor({body, status, headers, statusText, type, url}?: ResponseOptionsArgs); constructor({body, status, headers, statusText, type, url}?: ResponseOptionsArgs);
merge(options?: ResponseOptionsArgs): ResponseOptions; merge(options?: ResponseOptionsArgs): ResponseOptions;
@ -181,20 +181,20 @@ export declare enum ResponseType {
} }
export declare class URLSearchParams { export declare class URLSearchParams {
rawParams: string;
paramsMap: Map<string, string[]>; paramsMap: Map<string, string[]>;
rawParams: string;
constructor(rawParams?: string); constructor(rawParams?: string);
clone(): URLSearchParams;
has(param: string): boolean;
get(param: string): string;
getAll(param: string): string[];
set(param: string, val: string): void;
setAll(searchParams: URLSearchParams): void;
append(param: string, val: string): void; append(param: string, val: string): void;
appendAll(searchParams: URLSearchParams): void; appendAll(searchParams: URLSearchParams): void;
replaceAll(searchParams: URLSearchParams): void; clone(): URLSearchParams;
toString(): string;
delete(param: string): void; delete(param: string): void;
get(param: string): string;
getAll(param: string): string[];
has(param: string): boolean;
replaceAll(searchParams: URLSearchParams): void;
set(param: string, val: string): void;
setAll(searchParams: URLSearchParams): void;
toString(): string;
} }
export declare class XHRBackend implements ConnectionBackend { export declare class XHRBackend implements ConnectionBackend {
@ -203,9 +203,9 @@ export declare class XHRBackend implements ConnectionBackend {
} }
export declare class XHRConnection implements Connection { export declare class XHRConnection implements Connection {
readyState: ReadyState;
request: Request; request: Request;
response: Observable<Response>; response: Observable<Response>;
readyState: ReadyState;
constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions); constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions);
setDetectedContentType(req: any, _xhr: any): void; setDetectedContentType(req: any, _xhr: any): void;
} }

View File

@ -3,9 +3,9 @@ export declare class MockBackend implements ConnectionBackend {
connectionsArray: MockConnection[]; connectionsArray: MockConnection[];
pendingConnections: any; pendingConnections: any;
constructor(); constructor();
verifyNoPendingRequests(): void;
resolveAllConnections(): void;
createConnection(req: Request): MockConnection; createConnection(req: Request): MockConnection;
resolveAllConnections(): void;
verifyNoPendingRequests(): void;
} }
export declare class MockConnection implements Connection { export declare class MockConnection implements Connection {
@ -13,7 +13,7 @@ export declare class MockConnection implements Connection {
request: Request; request: Request;
response: ReplaySubject<Response>; response: ReplaySubject<Response>;
constructor(req: Request); constructor(req: Request);
mockRespond(res: Response): void;
mockDownload(res: Response): void; mockDownload(res: Response): void;
mockError(err?: Error): void; mockError(err?: Error): void;
mockRespond(res: Response): void;
} }

View File

@ -9,17 +9,17 @@ export declare const BROWSER_SANITIZATION_PROVIDERS: Array<any>;
export declare function browserPlatform(): PlatformRef; export declare function browserPlatform(): PlatformRef;
export declare class BrowserPlatformLocation extends PlatformLocation { export declare class BrowserPlatformLocation extends PlatformLocation {
constructor(); hash: string;
getBaseHrefFromDOM(): string;
onPopState(fn: UrlChangeListener): void;
onHashChange(fn: UrlChangeListener): void;
pathname: string; pathname: string;
search: string; search: string;
hash: string; constructor();
back(): void;
forward(): void;
getBaseHrefFromDOM(): string;
onHashChange(fn: UrlChangeListener): void;
onPopState(fn: UrlChangeListener): void;
pushState(state: any, title: string, url: string): void; pushState(state: any, title: string, url: string): void;
replaceState(state: any, title: string, url: string): void; replaceState(state: any, title: string, url: string): void;
forward(): void;
back(): void;
} }
export declare class By { export declare class By {
@ -41,18 +41,18 @@ export declare function disableDebugTools(): void;
export declare const DOCUMENT: OpaqueToken; export declare const DOCUMENT: OpaqueToken;
export declare class DomEventsPlugin extends EventManagerPlugin { export declare class DomEventsPlugin extends EventManagerPlugin {
supports(eventName: string): boolean;
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function; addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
addGlobalEventListener(target: string, eventName: string, handler: Function): Function; addGlobalEventListener(target: string, eventName: string, handler: Function): Function;
supports(eventName: string): boolean;
} }
export declare abstract class DomSanitizationService implements SanitizationService { export declare abstract class DomSanitizationService implements SanitizationService {
abstract sanitize(context: SecurityContext, value: any): string;
abstract bypassSecurityTrustHtml(value: string): SafeHtml; abstract bypassSecurityTrustHtml(value: string): SafeHtml;
abstract bypassSecurityTrustStyle(value: string): SafeStyle;
abstract bypassSecurityTrustScript(value: string): SafeScript;
abstract bypassSecurityTrustUrl(value: string): SafeUrl;
abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl; abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
abstract bypassSecurityTrustScript(value: string): SafeScript;
abstract bypassSecurityTrustStyle(value: string): SafeStyle;
abstract bypassSecurityTrustUrl(value: string): SafeUrl;
abstract sanitize(context: SecurityContext, value: any): string;
} }
export declare const ELEMENT_PROBE_PROVIDERS: any[]; export declare const ELEMENT_PROBE_PROVIDERS: any[];
@ -69,8 +69,8 @@ export declare class EventManager {
} }
export declare class FnArg { export declare class FnArg {
value: any;
type: Type; type: Type;
value: any;
constructor(value: any, type: Type); constructor(value: any, type: Type);
} }
@ -86,40 +86,40 @@ export declare class HammerGestureConfig {
export declare class KeyEventsPlugin extends EventManagerPlugin { export declare class KeyEventsPlugin extends EventManagerPlugin {
constructor(); constructor();
supports(eventName: string): boolean;
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function; addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
supports(eventName: string): boolean;
static eventCallback(element: HTMLElement, fullKey: any, handler: Function, zone: NgZone): Function;
static getEventFullKey(event: KeyboardEvent): string;
static parseEventName(eventName: string): { static parseEventName(eventName: string): {
[key: string]: string; [key: string]: string;
}; };
static getEventFullKey(event: KeyboardEvent): string;
static eventCallback(element: HTMLElement, fullKey: any, handler: Function, zone: NgZone): Function;
} }
export declare abstract class MessageBus implements MessageBusSource, MessageBusSink { export declare abstract class MessageBus implements MessageBusSource, MessageBusSink {
abstract initChannel(channel: string, runInZone?: boolean): void;
abstract attachToZone(zone: NgZone): void; abstract attachToZone(zone: NgZone): void;
abstract from(channel: string): EventEmitter<any>; abstract from(channel: string): EventEmitter<any>;
abstract initChannel(channel: string, runInZone?: boolean): void;
abstract to(channel: string): EventEmitter<any>; abstract to(channel: string): EventEmitter<any>;
} }
export interface MessageBusSink { export interface MessageBusSink {
initChannel(channel: string, runInZone: boolean): void;
attachToZone(zone: NgZone): void; attachToZone(zone: NgZone): void;
initChannel(channel: string, runInZone: boolean): void;
to(channel: string): EventEmitter<any>; to(channel: string): EventEmitter<any>;
} }
export interface MessageBusSource { export interface MessageBusSource {
initChannel(channel: string, runInZone: boolean): void;
attachToZone(zone: NgZone): void; attachToZone(zone: NgZone): void;
from(channel: string): EventEmitter<any>; from(channel: string): EventEmitter<any>;
initChannel(channel: string, runInZone: boolean): void;
} }
export declare const PRIMITIVE: Type; export declare const PRIMITIVE: Type;
export declare class ReceivedMessage { export declare class ReceivedMessage {
method: string;
args: any[]; args: any[];
id: string; id: string;
method: string;
type: string; type: string;
constructor(data: { constructor(data: {
[key: string]: any; [key: string]: any;
@ -157,14 +157,14 @@ export declare class Title {
} }
export declare class UiArguments { export declare class UiArguments {
method: string;
args: FnArg[]; args: FnArg[];
method: string;
constructor(method: string, args?: FnArg[]); constructor(method: string, args?: FnArg[]);
} }
export declare class WebWorkerInstance { export declare class WebWorkerInstance {
worker: Worker;
bus: MessageBus; bus: MessageBus;
worker: Worker;
} }
export declare const WORKER_APP_APPLICATION_PROVIDERS: Array<any>; export declare const WORKER_APP_APPLICATION_PROVIDERS: Array<any>;

View File

@ -1,17 +1,17 @@
export declare class ActivatedRoute { export declare class ActivatedRoute {
url: Observable<UrlPathWithParams[]>;
params: Observable<Params>;
outlet: string;
component: Type | string; component: Type | string;
outlet: string;
params: Observable<Params>;
snapshot: ActivatedRouteSnapshot; snapshot: ActivatedRouteSnapshot;
url: Observable<UrlPathWithParams[]>;
toString(): string; toString(): string;
} }
export declare class ActivatedRouteSnapshot { export declare class ActivatedRouteSnapshot {
url: UrlPathWithParams[];
params: Params;
outlet: string;
component: Type | string; component: Type | string;
outlet: string;
params: Params;
url: UrlPathWithParams[];
toString(): string; toString(): string;
} }
@ -50,9 +50,9 @@ export declare class NavigationEnd {
} }
export declare class NavigationError { export declare class NavigationError {
error: any;
id: number; id: number;
url: string; url: string;
error: any;
constructor(id: number, url: string, error: any); constructor(id: number, url: string, error: any);
toString(): string; toString(): string;
} }
@ -73,26 +73,26 @@ export declare const PRIMARY_OUTLET: string;
export declare function provideRouter(config: RouterConfig, opts?: ExtraOptions): any[]; export declare function provideRouter(config: RouterConfig, opts?: ExtraOptions): any[];
export interface Route { export interface Route {
path?: string;
terminal?: boolean;
component?: Type | string;
outlet?: string;
canActivate?: any[]; canActivate?: any[];
canDeactivate?: any[]; canDeactivate?: any[];
redirectTo?: string;
children?: Route[]; children?: Route[];
component?: Type | string;
outlet?: string;
path?: string;
redirectTo?: string;
terminal?: boolean;
} }
export declare class Router { export declare class Router {
events: Observable<Event>;
routerState: RouterState; routerState: RouterState;
url: string; url: string;
events: Observable<Event>;
resetConfig(config: RouterConfig): void;
createUrlTree(commands: any[], {relativeTo, queryParams, fragment}?: NavigationExtras): UrlTree; createUrlTree(commands: any[], {relativeTo, queryParams, fragment}?: NavigationExtras): UrlTree;
navigateByUrl(url: string | UrlTree): Promise<boolean>;
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>; navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
serializeUrl(url: UrlTree): string; navigateByUrl(url: string | UrlTree): Promise<boolean>;
parseUrl(url: string): UrlTree; parseUrl(url: string): UrlTree;
resetConfig(config: RouterConfig): void;
serializeUrl(url: UrlTree): string;
} }
export declare const ROUTER_DIRECTIVES: (typeof RouterOutlet | typeof RouterLink | typeof RouterLinkActive)[]; export declare const ROUTER_DIRECTIVES: (typeof RouterOutlet | typeof RouterLink | typeof RouterLinkActive)[];
@ -104,33 +104,33 @@ export declare class RouterOutletMap {
} }
export declare class RouterState extends Tree<ActivatedRoute> { export declare class RouterState extends Tree<ActivatedRoute> {
queryParams: Observable<Params>;
fragment: Observable<string>; fragment: Observable<string>;
queryParams: Observable<Params>;
snapshot: RouterStateSnapshot; snapshot: RouterStateSnapshot;
toString(): string; toString(): string;
} }
export declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> { export declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
url: string;
queryParams: Params;
fragment: string; fragment: string;
queryParams: Params;
url: string;
toString(): string; toString(): string;
} }
export declare class RoutesRecognized { export declare class RoutesRecognized {
id: number; id: number;
state: RouterStateSnapshot;
url: string; url: string;
urlAfterRedirects: string; urlAfterRedirects: string;
state: RouterStateSnapshot;
constructor(id: number, url: string, urlAfterRedirects: string, state: RouterStateSnapshot); constructor(id: number, url: string, urlAfterRedirects: string, state: RouterStateSnapshot);
toString(): string; toString(): string;
} }
export declare class UrlPathWithParams { export declare class UrlPathWithParams {
path: string;
parameters: { parameters: {
[key: string]: string; [key: string]: string;
}; };
path: string;
constructor(path: string, parameters: { constructor(path: string, parameters: {
[key: string]: string; [key: string]: string;
}); });
@ -143,10 +143,10 @@ export declare abstract class UrlSerializer {
} }
export declare class UrlTree { export declare class UrlTree {
root: UrlSegment; fragment: string;
queryParams: { queryParams: {
[key: string]: string; [key: string]: string;
}; };
fragment: string; root: UrlSegment;
toString(): string; toString(): string;
} }

View File

@ -1,19 +1,19 @@
export declare class UpgradeAdapter { export declare class UpgradeAdapter {
downgradeNg2Component(type: Type): Function;
upgradeNg1Component(name: string): Type;
bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef;
addProvider(provider: Type | Provider | any[] | any): void; addProvider(provider: Type | Provider | any[] | any): void;
bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef;
downgradeNg2Component(type: Type): Function;
downgradeNg2Provider(token: any): Function;
upgradeNg1Component(name: string): Type;
upgradeNg1Provider(name: string, options?: { upgradeNg1Provider(name: string, options?: {
asToken: any; asToken: any;
}): void; }): void;
downgradeNg2Provider(token: any): Function;
} }
export declare class UpgradeAdapterRef { export declare class UpgradeAdapterRef {
ng1RootScope: angular.IRootScopeService;
ng1Injector: angular.IInjectorService; ng1Injector: angular.IInjectorService;
ng1RootScope: angular.IRootScopeService;
ng2ApplicationRef: ApplicationRef; ng2ApplicationRef: ApplicationRef;
ng2Injector: Injector; ng2Injector: Injector;
ready(fn: (upgradeAdapterRef?: UpgradeAdapterRef) => void): void;
dispose(): void; dispose(): void;
ready(fn: (upgradeAdapterRef?: UpgradeAdapterRef) => void): void;
} }