build(npm): upgrade ts-api-guardian to v0.1.4

Closes #9642
This commit is contained in:
Jason Choi 2016-06-27 10:02:02 -07:00 committed by Igor Minar
parent db66509e66
commit a620f95891
12 changed files with 302 additions and 18 deletions

View File

@ -53,7 +53,8 @@ const publicApiArgs = [
'--stripExportPattern', '^__', '--stripExportPattern', '^__',
'--allowModuleIdentifiers', 'jasmine', '--allowModuleIdentifiers', 'jasmine',
'--allowModuleIdentifiers', 'protractor', '--allowModuleIdentifiers', 'protractor',
'--allowModuleIdentifiers', 'angular' '--allowModuleIdentifiers', 'angular',
'--onStabilityMissing', 'warn'
].concat(entrypoints); ].concat(entrypoints);
// Note that these two commands work on built d.ts files instead of the source // Note that these two commands work on built d.ts files instead of the source

View File

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

6
npm-shrinkwrap.json generated
View File

@ -8418,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.3", "version": "0.1.4",
"from": "ts-api-guardian@0.1.3", "from": "ts-api-guardian@0.1.4",
"resolved": "https://registry.npmjs.org/ts-api-guardian/-/ts-api-guardian-0.1.3.tgz", "resolved": "https://registry.npmjs.org/ts-api-guardian/-/ts-api-guardian-0.1.4.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.3", "ts-api-guardian": "0.1.4",
"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,3 +1,4 @@
/** @experimental */
export declare abstract class AbstractControl { export declare abstract class AbstractControl {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
dirty: boolean; dirty: boolean;
@ -38,6 +39,7 @@ export declare abstract class AbstractControl {
}): void; }): void;
} }
/** @experimental */
export declare abstract class AbstractControlDirective { export declare abstract class AbstractControlDirective {
control: AbstractControl; control: AbstractControl;
dirty: boolean; dirty: boolean;
@ -52,14 +54,17 @@ export declare abstract class AbstractControlDirective {
value: any; value: any;
} }
/** @stable */
export declare const APP_BASE_HREF: OpaqueToken; export declare const APP_BASE_HREF: OpaqueToken;
/** @stable */
export declare class AsyncPipe implements OnDestroy { export declare class AsyncPipe implements OnDestroy {
constructor(_ref: ChangeDetectorRef); constructor(_ref: ChangeDetectorRef);
ngOnDestroy(): void; ngOnDestroy(): void;
transform(obj: Observable<any> | Promise<any> | EventEmitter<any>): any; transform(obj: Observable<any> | Promise<any> | EventEmitter<any>): any;
} }
/** @experimental */
export declare class CheckboxControlValueAccessor implements ControlValueAccessor { export declare class CheckboxControlValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
@ -69,10 +74,13 @@ export declare class CheckboxControlValueAccessor implements ControlValueAccesso
writeValue(value: any): void; writeValue(value: any): void;
} }
/** @experimental */
export declare const COMMON_DIRECTIVES: Type[][]; export declare const COMMON_DIRECTIVES: Type[][];
/** @experimental */
export declare const COMMON_PIPES: (typeof AsyncPipe | typeof SlicePipe | typeof ReplacePipe | typeof I18nPluralPipe | typeof I18nSelectPipe)[]; export declare const COMMON_PIPES: (typeof AsyncPipe | typeof SlicePipe | typeof ReplacePipe | typeof I18nPluralPipe | typeof I18nSelectPipe)[];
/** @experimental */
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; registerOnChange(fn: Function): void;
@ -83,6 +91,7 @@ export declare class Control extends AbstractControl {
}): void; }): void;
} }
/** @experimental */
export declare class ControlArray extends AbstractControl { export declare class ControlArray extends AbstractControl {
controls: AbstractControl[]; controls: AbstractControl[];
length: number; length: number;
@ -93,12 +102,14 @@ export declare class ControlArray extends AbstractControl {
removeAt(index: number): void; removeAt(index: number): void;
} }
/** @experimental */
export declare class ControlContainer extends AbstractControlDirective { export declare class ControlContainer extends AbstractControlDirective {
formDirective: Form; formDirective: Form;
name: string; name: string;
path: string[]; path: string[];
} }
/** @experimental */
export declare class ControlGroup extends AbstractControl { export declare class ControlGroup extends AbstractControl {
controls: { controls: {
[key: string]: AbstractControl; [key: string]: AbstractControl;
@ -116,26 +127,32 @@ export declare class ControlGroup extends AbstractControl {
removeControl(name: string): void; removeControl(name: string): void;
} }
/** @experimental */
export interface ControlValueAccessor { export interface ControlValueAccessor {
registerOnChange(fn: any): void; registerOnChange(fn: any): void;
registerOnTouched(fn: any): void; registerOnTouched(fn: any): void;
writeValue(obj: any): void; writeValue(obj: any): void;
} }
/** @stable */
export declare const CORE_DIRECTIVES: Type[]; export declare const CORE_DIRECTIVES: Type[];
/** @experimental */
export declare class CurrencyPipe implements PipeTransform { export declare class CurrencyPipe implements PipeTransform {
transform(value: any, currencyCode?: string, symbolDisplay?: boolean, digits?: string): string; transform(value: any, currencyCode?: string, symbolDisplay?: boolean, digits?: string): string;
} }
/** @experimental */
export declare class DatePipe implements PipeTransform { export declare class DatePipe implements PipeTransform {
transform(value: any, pattern?: string): string; transform(value: any, pattern?: string): string;
} }
/** @experimental */
export declare class DecimalPipe implements PipeTransform { export declare class DecimalPipe implements PipeTransform {
transform(value: any, digits?: string): string; transform(value: any, digits?: string): string;
} }
/** @experimental */
export declare class DefaultValueAccessor implements ControlValueAccessor { export declare class DefaultValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
@ -145,6 +162,7 @@ export declare class DefaultValueAccessor implements ControlValueAccessor {
writeValue(value: any): void; writeValue(value: any): void;
} }
/** @experimental */
export interface Form { export interface Form {
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
addControlGroup(dir: NgControlGroup): void; addControlGroup(dir: NgControlGroup): void;
@ -155,10 +173,13 @@ export interface Form {
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
/** @experimental */
export declare const FORM_DIRECTIVES: Type[]; export declare const FORM_DIRECTIVES: Type[];
/** @experimental */
export declare const FORM_PROVIDERS: Type[]; export declare const FORM_PROVIDERS: Type[];
/** @experimental */
export declare class FormBuilder { export declare class FormBuilder {
array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): ControlArray; array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): ControlArray;
control(value: Object, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): Control; control(value: Object, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): Control;
@ -169,6 +190,7 @@ export declare class FormBuilder {
}): ControlGroup; }): ControlGroup;
} }
/** @stable */
export declare class HashLocationStrategy extends LocationStrategy { export declare class HashLocationStrategy extends LocationStrategy {
constructor(_platformLocation: PlatformLocation, _baseHref?: string); constructor(_platformLocation: PlatformLocation, _baseHref?: string);
back(): void; back(): void;
@ -181,6 +203,7 @@ export declare class HashLocationStrategy extends LocationStrategy {
replaceState(state: any, title: string, path: string, queryParams: string): void; replaceState(state: any, title: string, path: string, queryParams: string): void;
} }
/** @experimental */
export declare class I18nPluralPipe implements PipeTransform { export declare class I18nPluralPipe implements PipeTransform {
constructor(_localization: NgLocalization); constructor(_localization: NgLocalization);
transform(value: number, pluralMap: { transform(value: number, pluralMap: {
@ -188,16 +211,19 @@ export declare class I18nPluralPipe implements PipeTransform {
}): string; }): string;
} }
/** @experimental */
export declare class I18nSelectPipe implements PipeTransform { export declare class I18nSelectPipe implements PipeTransform {
transform(value: string, mapping: { transform(value: string, mapping: {
[key: string]: string; [key: string]: string;
}): string; }): string;
} }
/** @stable */
export declare class JsonPipe implements PipeTransform { export declare class JsonPipe implements PipeTransform {
transform(value: any): string; transform(value: any): string;
} }
/** @stable */
export declare class Location { export declare class Location {
constructor(platformStrategy: LocationStrategy); constructor(platformStrategy: LocationStrategy);
back(): void; back(): void;
@ -214,6 +240,7 @@ export declare class Location {
static stripTrailingSlash(url: string): string; static stripTrailingSlash(url: string): string;
} }
/** @stable */
export declare abstract class LocationStrategy { export declare abstract class LocationStrategy {
abstract back(): void; abstract back(): void;
abstract forward(): void; abstract forward(): void;
@ -225,10 +252,12 @@ export declare abstract class LocationStrategy {
abstract replaceState(state: any, title: string, url: string, queryParams: string): void; abstract replaceState(state: any, title: string, url: string, queryParams: string): void;
} }
/** @experimental */
export declare class LowerCasePipe implements PipeTransform { export declare class LowerCasePipe implements PipeTransform {
transform(value: string): string; transform(value: string): string;
} }
/** @experimental */
export declare class MaxLengthValidator implements Validator { export declare class MaxLengthValidator implements Validator {
constructor(maxLength: string); constructor(maxLength: string);
validate(c: AbstractControl): { validate(c: AbstractControl): {
@ -236,6 +265,7 @@ export declare class MaxLengthValidator implements Validator {
}; };
} }
/** @experimental */
export declare class MinLengthValidator implements Validator { export declare class MinLengthValidator implements Validator {
constructor(minLength: string); constructor(minLength: string);
validate(c: AbstractControl): { validate(c: AbstractControl): {
@ -243,12 +273,16 @@ export declare class MinLengthValidator implements Validator {
}; };
} }
/** @experimental */
export declare const NG_ASYNC_VALIDATORS: OpaqueToken; export declare const NG_ASYNC_VALIDATORS: OpaqueToken;
/** @experimental */
export declare const NG_VALIDATORS: OpaqueToken; export declare const NG_VALIDATORS: OpaqueToken;
/** @experimental */
export declare const NG_VALUE_ACCESSOR: OpaqueToken; export declare const NG_VALUE_ACCESSOR: OpaqueToken;
/** @stable */
export declare class NgClass implements DoCheck, OnDestroy { export declare class NgClass implements DoCheck, OnDestroy {
initialClasses: string; initialClasses: string;
rawClass: string | string[] | Set<string> | { rawClass: string | string[] | Set<string> | {
@ -259,6 +293,7 @@ export declare class NgClass implements DoCheck, OnDestroy {
ngOnDestroy(): void; ngOnDestroy(): void;
} }
/** @experimental */
export declare abstract class NgControl extends AbstractControlDirective { export declare abstract class NgControl extends AbstractControlDirective {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
name: string; name: string;
@ -267,6 +302,7 @@ export declare abstract class NgControl extends AbstractControlDirective {
abstract viewToModelUpdate(newValue: any): void; abstract viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class NgControlGroup extends ControlContainer implements OnInit, OnDestroy { export declare class NgControlGroup extends ControlContainer implements OnInit, OnDestroy {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: ControlGroup; control: ControlGroup;
@ -278,6 +314,7 @@ export declare class NgControlGroup extends ControlContainer implements OnInit,
ngOnInit(): void; ngOnInit(): void;
} }
/** @experimental */
export declare class NgControlName extends NgControl implements OnChanges, OnDestroy { export declare class NgControlName extends NgControl implements OnChanges, OnDestroy {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: Control; control: Control;
@ -292,6 +329,7 @@ export declare class NgControlName extends NgControl implements OnChanges, OnDes
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class NgControlStatus { export declare class NgControlStatus {
ngClassDirty: boolean; ngClassDirty: boolean;
ngClassInvalid: boolean; ngClassInvalid: boolean;
@ -302,6 +340,7 @@ export declare class NgControlStatus {
constructor(cd: NgControl); constructor(cd: NgControl);
} }
/** @stable */
export declare class NgFor implements DoCheck { export declare class NgFor implements DoCheck {
ngForOf: any; ngForOf: any;
ngForTemplate: TemplateRef<NgForRow>; ngForTemplate: TemplateRef<NgForRow>;
@ -310,6 +349,7 @@ export declare class NgFor implements DoCheck {
ngDoCheck(): void; ngDoCheck(): void;
} }
/** @experimental */
export declare class NgForm extends ControlContainer implements Form { export declare class NgForm extends ControlContainer implements Form {
control: ControlGroup; control: ControlGroup;
controls: { controls: {
@ -331,6 +371,7 @@ export declare class NgForm extends ControlContainer implements Form {
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
/** @experimental */
export declare class NgFormControl extends NgControl implements OnChanges { export declare class NgFormControl extends NgControl implements OnChanges {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: Control; control: Control;
@ -345,6 +386,7 @@ export declare class NgFormControl extends NgControl implements OnChanges {
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class NgFormModel extends ControlContainer implements Form, OnChanges { export declare class NgFormModel extends ControlContainer implements Form, OnChanges {
control: ControlGroup; control: ControlGroup;
directives: NgControl[]; directives: NgControl[];
@ -365,15 +407,18 @@ export declare class NgFormModel extends ControlContainer implements Form, OnCha
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
/** @stable */
export declare class NgIf { export declare class NgIf {
ngIf: any; ngIf: any;
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<Object>); constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<Object>);
} }
/** @experimental */
export declare abstract class NgLocalization { export declare abstract class NgLocalization {
abstract getPluralCategory(value: any): string; abstract getPluralCategory(value: any): string;
} }
/** @experimental */
export declare class NgModel extends NgControl implements OnChanges { export declare class NgModel extends NgControl implements OnChanges {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: Control; control: Control;
@ -387,6 +432,7 @@ export declare class NgModel extends NgControl implements OnChanges {
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class NgPlural implements AfterContentInit { export declare class NgPlural implements AfterContentInit {
cases: QueryList<NgPluralCase>; cases: QueryList<NgPluralCase>;
ngPlural: number; ngPlural: number;
@ -394,11 +440,13 @@ export declare class NgPlural implements AfterContentInit {
ngAfterContentInit(): void; ngAfterContentInit(): void;
} }
/** @experimental */
export declare class NgPluralCase { export declare class NgPluralCase {
value: string; value: string;
constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef); constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef);
} }
/** @experimental */
export declare class NgSelectOption implements OnDestroy { export declare class NgSelectOption implements OnDestroy {
id: string; id: string;
ngValue: any; ngValue: any;
@ -407,6 +455,7 @@ export declare class NgSelectOption implements OnDestroy {
ngOnDestroy(): void; ngOnDestroy(): void;
} }
/** @stable */
export declare class NgStyle implements DoCheck { export declare class NgStyle implements DoCheck {
rawStyle: { rawStyle: {
[key: string]: string; [key: string]: string;
@ -415,26 +464,31 @@ export declare class NgStyle implements DoCheck {
ngDoCheck(): void; ngDoCheck(): void;
} }
/** @experimental */
export declare class NgSwitch { export declare class NgSwitch {
ngSwitch: any; ngSwitch: any;
} }
/** @experimental */
export declare class NgSwitchCase { export declare class NgSwitchCase {
ngSwitchCase: any; ngSwitchCase: any;
ngSwitchWhen: any; ngSwitchWhen: any;
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch); constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
} }
/** @experimental */
export declare class NgSwitchDefault { export declare class NgSwitchDefault {
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, sswitch: NgSwitch); constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, sswitch: NgSwitch);
} }
/** @experimental */
export declare class NgTemplateOutlet { export declare class NgTemplateOutlet {
ngOutletContext: Object; ngOutletContext: Object;
ngTemplateOutlet: TemplateRef<Object>; ngTemplateOutlet: TemplateRef<Object>;
constructor(_viewContainerRef: ViewContainerRef); constructor(_viewContainerRef: ViewContainerRef);
} }
/** @stable */
export declare class PathLocationStrategy extends LocationStrategy { export declare class PathLocationStrategy extends LocationStrategy {
constructor(_platformLocation: PlatformLocation, href?: string); constructor(_platformLocation: PlatformLocation, href?: string);
back(): void; back(): void;
@ -447,6 +501,7 @@ export declare class PathLocationStrategy extends LocationStrategy {
replaceState(state: any, title: string, url: string, queryParams: string): void; replaceState(state: any, title: string, url: string, queryParams: string): void;
} }
/** @experimental */
export declare class PatternValidator implements Validator { export declare class PatternValidator implements Validator {
constructor(pattern: string); constructor(pattern: string);
validate(c: AbstractControl): { validate(c: AbstractControl): {
@ -454,10 +509,12 @@ export declare class PatternValidator implements Validator {
}; };
} }
/** @experimental */
export declare class PercentPipe implements PipeTransform { export declare class PercentPipe implements PipeTransform {
transform(value: any, digits?: string): string; transform(value: any, digits?: string): string;
} }
/** @stable */
export declare abstract class PlatformLocation { export declare abstract class PlatformLocation {
hash: string; hash: string;
pathname: string; pathname: string;
@ -471,19 +528,23 @@ export declare abstract class PlatformLocation {
abstract replaceState(state: any, title: string, url: string): void; abstract replaceState(state: any, title: string, url: string): void;
} }
/** @experimental */
export declare class RadioButtonState { export declare class RadioButtonState {
checked: boolean; checked: boolean;
value: string; value: string;
constructor(checked: boolean, value: string); constructor(checked: boolean, value: string);
} }
/** @deprecated */
export declare class ReplacePipe implements PipeTransform { export declare class ReplacePipe implements PipeTransform {
transform(value: any, pattern: string | RegExp, replacement: Function | string): any; transform(value: any, pattern: string | RegExp, replacement: Function | string): any;
} }
/** @experimental */
export declare class RequiredValidator { export declare class RequiredValidator {
} }
/** @experimental */
export declare class SelectControlValueAccessor implements ControlValueAccessor { export declare class SelectControlValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
@ -494,14 +555,17 @@ export declare class SelectControlValueAccessor implements ControlValueAccessor
writeValue(value: any): void; writeValue(value: any): void;
} }
/** @stable */
export declare class SlicePipe implements PipeTransform { export declare class SlicePipe implements PipeTransform {
transform(value: any, start: number, end?: number): any; transform(value: any, start: number, end?: number): any;
} }
/** @experimental */
export declare class UpperCasePipe implements PipeTransform { export declare class UpperCasePipe implements PipeTransform {
transform(value: string): string; transform(value: string): string;
} }
/** @stable */
export interface UrlChangeEvent { export interface UrlChangeEvent {
type: string; type: string;
} }
@ -516,6 +580,7 @@ export interface Validator {
}; };
} }
/** @experimental */
export declare class Validators { export declare class Validators {
static compose(validators: ValidatorFn[]): ValidatorFn; static compose(validators: ValidatorFn[]): ValidatorFn;
static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn; static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn;

View File

@ -1,21 +1,26 @@
/** @stable */
export declare class AbstractProviderError extends BaseException { export declare class AbstractProviderError extends BaseException {
context: any; 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;
} }
/** @stable */
export declare abstract class AfterContentChecked { export declare abstract class AfterContentChecked {
abstract ngAfterContentChecked(): any; abstract ngAfterContentChecked(): any;
} }
/** @stable */
export declare abstract class AfterContentInit { export declare abstract class AfterContentInit {
abstract ngAfterContentInit(): any; abstract ngAfterContentInit(): any;
} }
/** @stable */
export declare abstract class AfterViewChecked { export declare abstract class AfterViewChecked {
abstract ngAfterViewChecked(): any; abstract ngAfterViewChecked(): any;
} }
/** @stable */
export declare abstract class AfterViewInit { export declare abstract class AfterViewInit {
abstract ngAfterViewInit(): any; abstract ngAfterViewInit(): any;
} }
@ -95,14 +100,18 @@ export declare abstract class AnimationWithStepsMetadata extends AnimationMetada
constructor(); constructor();
} }
/** @experimental */
export declare const APP_ID: any; export declare const APP_ID: any;
/** @experimental */
export declare const APP_INITIALIZER: any; export declare const APP_INITIALIZER: any;
/** @stable */
export declare const APPLICATION_COMMON_PROVIDERS: Array<Type | { export declare const APPLICATION_COMMON_PROVIDERS: Array<Type | {
[k: string]: any; [k: string]: any;
} | any[]>; } | any[]>;
/** @stable */
export declare abstract class ApplicationRef { export declare abstract class ApplicationRef {
componentTypes: Type[]; componentTypes: Type[];
injector: Injector; injector: Injector;
@ -116,12 +125,16 @@ export declare abstract class ApplicationRef {
abstract waitForAsyncInitializers(): Promise<any>; abstract waitForAsyncInitializers(): Promise<any>;
} }
/** @experimental */
export declare function asNativeElements(debugEls: DebugElement[]): any; export declare function asNativeElements(debugEls: DebugElement[]): any;
/** @experimental */
export declare function assertPlatform(requiredToken: any): PlatformRef; export declare function assertPlatform(requiredToken: any): PlatformRef;
/** @stable */
export declare var Attribute: AttributeMetadataFactory; export declare var Attribute: AttributeMetadataFactory;
/** @stable */
export declare class AttributeMetadata extends DependencyMetadata { export declare class AttributeMetadata extends DependencyMetadata {
attributeName: string; attributeName: string;
token: AttributeMetadata; token: AttributeMetadata;
@ -136,6 +149,7 @@ export interface AttributeMetadataFactory {
export declare const AUTO_STYLE: string; export declare const AUTO_STYLE: string;
/** @stable */
export declare class BaseException extends Error { export declare class BaseException extends Error {
message: string; message: string;
stack: any; stack: any;
@ -143,13 +157,15 @@ export declare class BaseException extends Error {
toString(): string; toString(): string;
} }
/** @deprecated */
export declare function bind(token: any): ProviderBuilder; export declare function bind(token: any): ProviderBuilder;
/** @deprecated */
export declare class Binding extends Provider { export declare class Binding extends Provider {
toAlias: any; /** @deprecated */ toAlias: any;
toClass: Type; /** @deprecated */ toClass: Type;
toFactory: Function; /** @deprecated */ toFactory: Function;
toValue: any; /** @deprecated */ 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;
@ -160,6 +176,7 @@ export declare class Binding extends Provider {
}); });
} }
/** @stable */
export declare enum ChangeDetectionStrategy { export declare enum ChangeDetectionStrategy {
CheckOnce = 0, CheckOnce = 0,
Checked = 1, Checked = 1,
@ -169,6 +186,7 @@ export declare enum ChangeDetectionStrategy {
Default = 5, Default = 5,
} }
/** @stable */
export declare abstract class ChangeDetectorRef { export declare abstract class ChangeDetectorRef {
abstract checkNoChanges(): void; abstract checkNoChanges(): void;
abstract detach(): void; abstract detach(): void;
@ -177,6 +195,7 @@ export declare abstract class ChangeDetectorRef {
abstract reattach(): void; abstract reattach(): void;
} }
/** @stable */
export declare function Class(clsDef: ClassDefinition): ConcreteType; export declare function Class(clsDef: ClassDefinition): ConcreteType;
export interface ClassDefinition { export interface ClassDefinition {
@ -185,6 +204,7 @@ export interface ClassDefinition {
[x: string]: Type | Function | any[]; [x: string]: Type | Function | any[];
} }
/** @stable */
export declare class CollectionChangeRecord { export declare class CollectionChangeRecord {
currentIndex: number; currentIndex: number;
item: any; item: any;
@ -194,6 +214,7 @@ export declare class CollectionChangeRecord {
toString(): string; toString(): string;
} }
/** @stable */
export declare var Component: ComponentMetadataFactory; export declare var Component: ComponentMetadataFactory;
export interface ComponentDecorator extends TypeDecorator { export interface ComponentDecorator extends TypeDecorator {
@ -222,6 +243,7 @@ export declare abstract class ComponentFactoryResolver {
static NULL: ComponentFactoryResolver; static NULL: ComponentFactoryResolver;
} }
/** @stable */
export declare class ComponentMetadata extends DirectiveMetadata { export declare class ComponentMetadata extends DirectiveMetadata {
animations: AnimationEntryMetadata[]; animations: AnimationEntryMetadata[];
changeDetection: ChangeDetectionStrategy; changeDetection: ChangeDetectionStrategy;
@ -323,6 +345,7 @@ export interface ComponentMetadataFactory {
}): ComponentMetadata; }): ComponentMetadata;
} }
/** @stable */
export declare abstract class ComponentRef<C> { export declare abstract class ComponentRef<C> {
changeDetectorRef: ChangeDetectorRef; changeDetectorRef: ChangeDetectorRef;
componentType: Type; componentType: Type;
@ -334,19 +357,23 @@ export declare abstract class ComponentRef<C> {
abstract onDestroy(callback: Function): void; abstract onDestroy(callback: Function): void;
} }
/** @experimental */
export declare abstract class ComponentResolver { export declare abstract class ComponentResolver {
abstract clearCache(): void; abstract clearCache(): void;
abstract resolveComponent(component: Type | string): Promise<ComponentFactory<any>>; abstract resolveComponent(component: Type | string): Promise<ComponentFactory<any>>;
} }
/** @stable */
export declare var ContentChild: ContentChildMetadataFactory; export declare var ContentChild: ContentChildMetadataFactory;
/** @stable */
export declare class ContentChildMetadata extends QueryMetadata { export declare class ContentChildMetadata extends QueryMetadata {
constructor(_selector: Type | string, {read}?: { constructor(_selector: Type | string, {read}?: {
read?: any; read?: any;
}); });
} }
/** @stable */
export interface ContentChildMetadataFactory { export interface ContentChildMetadataFactory {
(selector: Type | string, {read}?: { (selector: Type | string, {read}?: {
read?: any; read?: any;
@ -356,8 +383,10 @@ export interface ContentChildMetadataFactory {
}): ContentChildMetadataFactory; }): ContentChildMetadataFactory;
} }
/** @stable */
export declare var ContentChildren: ContentChildrenMetadataFactory; export declare var ContentChildren: ContentChildrenMetadataFactory;
/** @stable */
export declare class ContentChildrenMetadata extends QueryMetadata { export declare class ContentChildrenMetadata extends QueryMetadata {
constructor(_selector: Type | string, {descendants, read}?: { constructor(_selector: Type | string, {descendants, read}?: {
descendants?: boolean; descendants?: boolean;
@ -365,6 +394,7 @@ export declare class ContentChildrenMetadata extends QueryMetadata {
}); });
} }
/** @stable */
export interface ContentChildrenMetadataFactory { export interface ContentChildrenMetadataFactory {
(selector: Type | string, {descendants, read}?: { (selector: Type | string, {descendants, read}?: {
descendants?: boolean; descendants?: boolean;
@ -376,18 +406,24 @@ export interface ContentChildrenMetadataFactory {
}): ContentChildrenMetadata; }): ContentChildrenMetadata;
} }
/** @experimental */
export declare function coreBootstrap<C>(componentFactory: ComponentFactory<C>, injector: Injector): ComponentRef<C>; export declare function coreBootstrap<C>(componentFactory: ComponentFactory<C>, injector: Injector): ComponentRef<C>;
/** @experimental */
export declare function coreLoadAndBootstrap(componentType: Type, injector: Injector): Promise<ComponentRef<any>>; export declare function coreLoadAndBootstrap(componentType: Type, injector: Injector): Promise<ComponentRef<any>>;
/** @experimental */
export declare function createNgZone(): NgZone; export declare function createNgZone(): NgZone;
/** @experimental */
export declare function createPlatform(injector: Injector): PlatformRef; export declare function createPlatform(injector: Injector): PlatformRef;
/** @stable */
export declare class CyclicDependencyError extends AbstractProviderError { export declare class CyclicDependencyError extends AbstractProviderError {
constructor(injector: ReflectiveInjector, key: ReflectiveKey); constructor(injector: ReflectiveInjector, key: ReflectiveKey);
} }
/** @experimental */
export declare class DebugElement extends DebugNode { export declare class DebugElement extends DebugNode {
attributes: { attributes: {
[key: string]: string; [key: string]: string;
@ -415,6 +451,7 @@ export declare class DebugElement extends DebugNode {
triggerEventHandler(eventName: string, eventObj: any): void; triggerEventHandler(eventName: string, eventObj: any): void;
} }
/** @experimental */
export declare class DebugNode { export declare class DebugNode {
componentInstance: any; componentInstance: any;
context: any; context: any;
@ -428,9 +465,10 @@ export declare class DebugNode {
}; };
source: string; source: string;
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo); constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
inject(token: any): any; /** @deprecated */ inject(token: any): any;
} }
/** @stable */
export declare class DefaultIterableDiffer implements IterableDiffer { export declare class DefaultIterableDiffer implements IterableDiffer {
collection: any; collection: any;
isDirty: boolean; isDirty: boolean;
@ -448,20 +486,22 @@ export declare class DefaultIterableDiffer implements IterableDiffer {
toString(): string; toString(): string;
} }
/** @stable */
export declare var Directive: DirectiveMetadataFactory; export declare var Directive: DirectiveMetadataFactory;
export interface DirectiveDecorator extends TypeDecorator { export interface DirectiveDecorator extends TypeDecorator {
} }
/** @stable */
export declare class DirectiveMetadata extends InjectableMetadata { export declare class DirectiveMetadata extends InjectableMetadata {
events: string[]; /** @deprecated */ events: string[];
exportAs: string; exportAs: string;
host: { host: {
[key: string]: string; [key: string]: string;
}; };
inputs: string[]; inputs: string[];
outputs: string[]; outputs: string[];
properties: string[]; /** @deprecated */ properties: string[];
providers: any[]; providers: any[];
queries: { queries: {
[key: string]: any; [key: string]: any;
@ -515,56 +555,67 @@ export interface DirectiveMetadataFactory {
}): DirectiveMetadata; }): DirectiveMetadata;
} }
/** @experimental */
export declare function disposePlatform(): void; export declare function disposePlatform(): void;
/** @stable */
export declare abstract class DoCheck { export declare abstract class DoCheck {
abstract ngDoCheck(): any; abstract ngDoCheck(): any;
} }
/** @deprecated */
export declare abstract class DynamicComponentLoader { export declare abstract class DynamicComponentLoader {
abstract loadAsRoot(type: Type, overrideSelectorOrNode: string | any, injector: Injector, onDispose?: () => void, projectableNodes?: any[][]): Promise<ComponentRef<any>>; abstract loadAsRoot(type: Type, overrideSelectorOrNode: string | any, injector: Injector, onDispose?: () => void, projectableNodes?: any[][]): Promise<ComponentRef<any>>;
abstract loadNextToLocation(type: Type, location: ViewContainerRef, providers?: ResolvedReflectiveProvider[], projectableNodes?: any[][]): Promise<ComponentRef<any>>; abstract loadNextToLocation(type: Type, location: ViewContainerRef, providers?: ResolvedReflectiveProvider[], projectableNodes?: any[][]): Promise<ComponentRef<any>>;
} }
export declare class ElementRef { export declare class ElementRef {
nativeElement: any; /** @stable */ nativeElement: any;
constructor(nativeElement: any); constructor(nativeElement: any);
} }
/** @experimental */
export declare abstract class EmbeddedViewRef<C> extends ViewRef { export declare abstract class EmbeddedViewRef<C> extends ViewRef {
context: C; context: C;
rootNodes: any[]; rootNodes: any[];
abstract destroy(): any; abstract destroy(): any;
} }
/** @stable */
export declare function enableProdMode(): void; export declare function enableProdMode(): void;
/** @stable */
export declare class EventEmitter<T> extends Subject<T> { export declare class EventEmitter<T> extends Subject<T> {
__isAsync: boolean; __isAsync: boolean;
constructor(isAsync?: boolean); constructor(isAsync?: boolean);
emit(value: T): void; emit(value: T): void;
next(value: any): void; /** @deprecated */ next(value: any): void;
subscribe(generatorOrNext?: any, error?: any, complete?: any): any; subscribe(generatorOrNext?: any, error?: any, complete?: any): any;
} }
/** @stable */
export declare class ExceptionHandler { export declare class ExceptionHandler {
constructor(_logger: any, _rethrowException?: boolean); constructor(_logger: any, _rethrowException?: boolean);
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; static exceptionToString(exception: any, stackTrace?: any, reason?: string): string;
} }
/** @stable */
export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException { export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {
constructor(oldValue: any, currValue: any, context: any); constructor(oldValue: any, currValue: any, context: any);
} }
/** @experimental */
export declare function forwardRef(forwardRefFn: ForwardRefFn): Type; export declare function forwardRef(forwardRefFn: ForwardRefFn): Type;
export interface ForwardRefFn { export interface ForwardRefFn {
(): any; (): any;
} }
/** @experimental */
export declare function getDebugNode(nativeNode: any): DebugNode; export declare function getDebugNode(nativeNode: any): DebugNode;
/** @experimental */
export declare function getPlatform(): PlatformRef; export declare function getPlatform(): PlatformRef;
export interface GetTestability { export interface GetTestability {
@ -574,84 +625,104 @@ export interface GetTestability {
export declare function group(steps: AnimationMetadata[]): AnimationGroupMetadata; export declare function group(steps: AnimationMetadata[]): AnimationGroupMetadata;
/** @stable */
export declare var Host: HostMetadataFactory; export declare var Host: HostMetadataFactory;
/** @stable */
export declare var HostBinding: HostBindingMetadataFactory; export declare var HostBinding: HostBindingMetadataFactory;
/** @stable */
export declare class HostBindingMetadata { export declare class HostBindingMetadata {
hostPropertyName: string; hostPropertyName: string;
constructor(hostPropertyName?: string); constructor(hostPropertyName?: string);
} }
/** @stable */
export interface HostBindingMetadataFactory { export interface HostBindingMetadataFactory {
(hostPropertyName?: string): any; (hostPropertyName?: string): any;
new (hostPropertyName?: string): any; new (hostPropertyName?: string): any;
} }
/** @stable */
export declare var HostListener: HostListenerMetadataFactory; export declare var HostListener: HostListenerMetadataFactory;
/** @stable */
export declare class HostListenerMetadata { export declare class HostListenerMetadata {
args: string[]; args: string[];
eventName: string; eventName: string;
constructor(eventName: string, args?: string[]); constructor(eventName: string, args?: string[]);
} }
/** @stable */
export interface HostListenerMetadataFactory { export interface HostListenerMetadataFactory {
(eventName: string, args?: string[]): any; (eventName: string, args?: string[]): any;
new (eventName: string, args?: string[]): any; new (eventName: string, args?: string[]): any;
} }
/** @stable */
export declare class HostMetadata { export declare class HostMetadata {
toString(): string; toString(): string;
} }
/** @stable */
export interface HostMetadataFactory { export interface HostMetadataFactory {
(): any; (): any;
new (): HostMetadata; new (): HostMetadata;
} }
/** @stable */
export declare var Inject: InjectMetadataFactory; export declare var Inject: InjectMetadataFactory;
/** @stable */
export declare var Injectable: InjectableMetadataFactory; export declare var Injectable: InjectableMetadataFactory;
/** @stable */
export declare class InjectableMetadata { export declare class InjectableMetadata {
constructor(); constructor();
} }
/** @stable */
export interface InjectableMetadataFactory { export interface InjectableMetadataFactory {
(): any; (): any;
new (): InjectableMetadata; new (): InjectableMetadata;
} }
/** @stable */
export declare class InjectMetadata { export declare class InjectMetadata {
token: any; token: any;
constructor(token: any); constructor(token: any);
toString(): string; toString(): string;
} }
/** @stable */
export interface InjectMetadataFactory { export interface InjectMetadataFactory {
(token: any): any; (token: any): any;
new (token: any): InjectMetadata; new (token: any): InjectMetadata;
} }
/** @stable */
export declare abstract class Injector { export declare abstract class Injector {
get(token: any, notFoundValue?: any): any; get(token: any, notFoundValue?: any): any;
static THROW_IF_NOT_FOUND: Object; static THROW_IF_NOT_FOUND: Object;
} }
/** @stable */
export declare var Input: InputMetadataFactory; export declare var Input: InputMetadataFactory;
/** @stable */
export declare class InputMetadata { export declare class InputMetadata {
bindingPropertyName: string; bindingPropertyName: string;
constructor( constructor(
bindingPropertyName?: string); bindingPropertyName?: string);
} }
/** @stable */
export interface InputMetadataFactory { export interface InputMetadataFactory {
(bindingPropertyName?: string): any; (bindingPropertyName?: string): any;
new (bindingPropertyName?: string): any; new (bindingPropertyName?: string): any;
} }
/** @stable */
export declare class InstantiationError extends WrappedException { export declare class InstantiationError extends WrappedException {
causeKey: ReflectiveKey; causeKey: ReflectiveKey;
context: any; context: any;
@ -660,12 +731,14 @@ export declare class InstantiationError extends WrappedException {
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void; addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
} }
/** @stable */
export declare class InvalidProviderError extends BaseException { export declare class InvalidProviderError extends BaseException {
constructor(provider: any); constructor(provider: any);
} }
export declare function isDevMode(): boolean; export declare function isDevMode(): boolean;
/** @stable */
export interface IterableDiffer { export interface IterableDiffer {
diff(object: any): any; diff(object: any): any;
onDestroy(): any; onDestroy(): any;
@ -676,6 +749,7 @@ export interface IterableDifferFactory {
supports(objects: any): boolean; supports(objects: any): boolean;
} }
/** @stable */
export declare class IterableDiffers { export declare class IterableDiffers {
factories: IterableDifferFactory[]; factories: IterableDifferFactory[];
constructor(factories: IterableDifferFactory[]); constructor(factories: IterableDifferFactory[]);
@ -686,6 +760,7 @@ export declare class IterableDiffers {
export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata; export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
/** @stable */
export declare class KeyValueChangeRecord { export declare class KeyValueChangeRecord {
currentValue: any; currentValue: any;
key: any; key: any;
@ -704,6 +779,7 @@ export interface KeyValueDifferFactory {
supports(objects: any): boolean; supports(objects: any): boolean;
} }
/** @stable */
export declare class KeyValueDiffers { export declare class KeyValueDiffers {
factories: KeyValueDifferFactory[]; factories: KeyValueDifferFactory[];
constructor(factories: KeyValueDifferFactory[]); constructor(factories: KeyValueDifferFactory[]);
@ -714,6 +790,7 @@ export declare class KeyValueDiffers {
export declare function lockRunMode(): void; export declare function lockRunMode(): void;
/** @experimental */
export declare class NgZone { export declare class NgZone {
hasPendingMacrotasks: boolean; hasPendingMacrotasks: boolean;
hasPendingMicrotasks: boolean; hasPendingMicrotasks: boolean;
@ -733,12 +810,14 @@ export declare class NgZone {
static isInAngularZone(): boolean; static isInAngularZone(): boolean;
} }
/** @deprecated */
export declare class NgZoneError { export declare class NgZoneError {
error: any; error: any;
stackTrace: any; stackTrace: any;
constructor(error: any, stackTrace: any); constructor(error: any, stackTrace: any);
} }
/** @stable */
export declare class NoAnnotationError extends BaseException { export declare class NoAnnotationError extends BaseException {
constructor(typeOrFunc: any, params: any[][]); constructor(typeOrFunc: any, params: any[][]);
} }
@ -748,58 +827,73 @@ export declare class NoComponentFactoryError extends BaseException {
constructor(component: Function); constructor(component: Function);
} }
/** @stable */
export declare class NoProviderError extends AbstractProviderError { export declare class NoProviderError extends AbstractProviderError {
constructor(injector: ReflectiveInjector, key: ReflectiveKey); constructor(injector: ReflectiveInjector, key: ReflectiveKey);
} }
/** @stable */
export declare abstract class OnChanges { export declare abstract class OnChanges {
abstract ngOnChanges(changes: SimpleChanges): any; abstract ngOnChanges(changes: SimpleChanges): any;
} }
/** @stable */
export declare abstract class OnDestroy { export declare abstract class OnDestroy {
abstract ngOnDestroy(): any; abstract ngOnDestroy(): any;
} }
/** @stable */
export declare abstract class OnInit { export declare abstract class OnInit {
abstract ngOnInit(): any; abstract ngOnInit(): any;
} }
/** @stable */
export declare class OpaqueToken { export declare class OpaqueToken {
constructor(_desc: string); constructor(_desc: string);
toString(): string; toString(): string;
} }
/** @stable */
export declare var Optional: OptionalMetadataFactory; export declare var Optional: OptionalMetadataFactory;
/** @stable */
export declare class OptionalMetadata { export declare class OptionalMetadata {
toString(): string; toString(): string;
} }
/** @stable */
export interface OptionalMetadataFactory { export interface OptionalMetadataFactory {
(): any; (): any;
new (): OptionalMetadata; new (): OptionalMetadata;
} }
/** @stable */
export declare class OutOfBoundsError extends BaseException { export declare class OutOfBoundsError extends BaseException {
constructor(index: any); constructor(index: any);
} }
/** @stable */
export declare var Output: OutputMetadataFactory; export declare var Output: OutputMetadataFactory;
/** @stable */
export declare class OutputMetadata { export declare class OutputMetadata {
bindingPropertyName: string; bindingPropertyName: string;
constructor(bindingPropertyName?: string); constructor(bindingPropertyName?: string);
} }
/** @stable */
export interface OutputMetadataFactory { export interface OutputMetadataFactory {
(bindingPropertyName?: string): any; (bindingPropertyName?: string): any;
new (bindingPropertyName?: string): any; new (bindingPropertyName?: string): any;
} }
/** @experimental */
export declare const PACKAGE_ROOT_URL: any; export declare const PACKAGE_ROOT_URL: any;
/** @stable */
export declare var Pipe: PipeMetadataFactory; export declare var Pipe: PipeMetadataFactory;
/** @stable */
export declare class PipeMetadata extends InjectableMetadata { export declare class PipeMetadata extends InjectableMetadata {
name: string; name: string;
pure: boolean; pure: boolean;
@ -809,6 +903,7 @@ export declare class PipeMetadata extends InjectableMetadata {
}); });
} }
/** @stable */
export interface PipeMetadataFactory { export interface PipeMetadataFactory {
(obj: { (obj: {
name: string; name: string;
@ -824,14 +919,19 @@ export interface PipeTransform {
transform(value: any, ...args: any[]): any; transform(value: any, ...args: any[]): any;
} }
/** @experimental */
export declare const PLATFORM_COMMON_PROVIDERS: Array<any | Type | Provider | any[]>; export declare const PLATFORM_COMMON_PROVIDERS: Array<any | Type | Provider | any[]>;
/** @stable */
export declare const PLATFORM_DIRECTIVES: OpaqueToken; export declare const PLATFORM_DIRECTIVES: OpaqueToken;
/** @experimental */
export declare const PLATFORM_INITIALIZER: any; export declare const PLATFORM_INITIALIZER: any;
/** @stable */
export declare const PLATFORM_PIPES: OpaqueToken; export declare const PLATFORM_PIPES: OpaqueToken;
/** @stable */
export declare abstract class PlatformRef { export declare abstract class PlatformRef {
disposed: boolean; disposed: boolean;
injector: Injector; injector: Injector;
@ -839,6 +939,7 @@ export declare abstract class PlatformRef {
abstract registerDisposeListener(dispose: () => void): void; abstract registerDisposeListener(dispose: () => void): void;
} }
/** @deprecated */
export declare function provide(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: { export declare function provide(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: {
useClass?: Type; useClass?: Type;
useValue?: any; useValue?: any;
@ -848,6 +949,7 @@ export declare function provide(token: any, {useClass, useValue, useExisting, us
multi?: boolean; multi?: boolean;
}): Provider; }): Provider;
/** @deprecated */
export declare class Provider { export declare class Provider {
dependencies: Object[]; dependencies: Object[];
multi: boolean; multi: boolean;
@ -866,6 +968,7 @@ export declare class Provider {
}); });
} }
/** @deprecated */
export declare class ProviderBuilder { export declare class ProviderBuilder {
token: any; token: any;
constructor(token: any); constructor(token: any);
@ -875,8 +978,10 @@ export declare class ProviderBuilder {
toValue(value: any): Provider; toValue(value: any): Provider;
} }
/** @deprecated */
export declare var Query: QueryMetadataFactory; export declare var Query: QueryMetadataFactory;
/** @stable */
export declare class QueryList<T> { export declare class QueryList<T> {
changes: Observable<any>; changes: Observable<any>;
dirty: boolean; dirty: boolean;
@ -895,6 +1000,7 @@ export declare class QueryList<T> {
toString(): string; toString(): string;
} }
/** @deprecated */
export declare class QueryMetadata extends DependencyMetadata { export declare class QueryMetadata extends DependencyMetadata {
descendants: boolean; descendants: boolean;
first: boolean; first: boolean;
@ -911,6 +1017,7 @@ export declare class QueryMetadata extends DependencyMetadata {
toString(): string; toString(): string;
} }
/** @deprecated */
export interface QueryMetadataFactory { export interface QueryMetadataFactory {
(selector: Type | string, {descendants, read}?: { (selector: Type | string, {descendants, read}?: {
descendants?: boolean; descendants?: boolean;
@ -931,8 +1038,8 @@ export declare abstract class ReflectiveInjector implements Injector {
[k: string]: any; [k: string]: any;
} | any[]>): ReflectiveInjector; } | any[]>): ReflectiveInjector;
resolveAndInstantiate(provider: Type | Provider): any; resolveAndInstantiate(provider: Type | Provider): any;
static fromResolvedBindings(providers: ResolvedReflectiveProvider[]): ReflectiveInjector; /** @deprecated */ static fromResolvedBindings(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
static fromResolvedProviders(providers: ResolvedReflectiveProvider[], parent?: Injector): ReflectiveInjector; /** @experimental */ 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[];
@ -941,6 +1048,7 @@ export declare abstract class ReflectiveInjector implements Injector {
} | any[]>, parent?: Injector): ReflectiveInjector; } | any[]>, parent?: Injector): ReflectiveInjector;
} }
/** @experimental */
export declare class ReflectiveKey { export declare class ReflectiveKey {
displayName: string; displayName: string;
id: number; id: number;
@ -950,6 +1058,7 @@ export declare class ReflectiveKey {
static get(token: Object): ReflectiveKey; static get(token: Object): ReflectiveKey;
} }
/** @experimental */
export declare class RenderComponentType { export declare class RenderComponentType {
encapsulation: ViewEncapsulation; encapsulation: ViewEncapsulation;
id: string; id: string;
@ -959,6 +1068,7 @@ export declare class RenderComponentType {
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[]>);
} }
/** @experimental */
export declare abstract class Renderer { export declare abstract class Renderer {
abstract animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string): AnimationPlayer; abstract animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string): AnimationPlayer;
abstract attachViewAfter(node: any, viewRootNodes: any[]): void; abstract attachViewAfter(node: any, viewRootNodes: any[]): void;
@ -981,9 +1091,11 @@ export declare abstract class Renderer {
abstract setText(renderNode: any, text: string): any; abstract setText(renderNode: any, text: string): any;
} }
/** @deprecated */
export interface ResolvedReflectiveBinding extends ResolvedReflectiveProvider { export interface ResolvedReflectiveBinding extends ResolvedReflectiveProvider {
} }
/** @experimental */
export declare class ResolvedReflectiveFactory { export declare class ResolvedReflectiveFactory {
dependencies: ReflectiveDependency[]; dependencies: ReflectiveDependency[];
factory: Function; factory: Function;
@ -998,18 +1110,23 @@ export interface ResolvedReflectiveProvider {
resolvedFactories: ResolvedReflectiveFactory[]; resolvedFactories: ResolvedReflectiveFactory[];
} }
/** @experimental */
export declare function resolveForwardRef(type: any): any; export declare function resolveForwardRef(type: any): any;
/** @experimental */
export declare abstract class RootRenderer { export declare abstract class RootRenderer {
abstract renderComponent(componentType: RenderComponentType): Renderer; abstract renderComponent(componentType: RenderComponentType): Renderer;
} }
/** @stable */
export declare var Self: SelfMetadataFactory; export declare var Self: SelfMetadataFactory;
/** @stable */
export declare class SelfMetadata { export declare class SelfMetadata {
toString(): string; toString(): string;
} }
/** @stable */
export interface SelfMetadataFactory { export interface SelfMetadataFactory {
(): any; (): any;
new (): SelfMetadata; new (): SelfMetadata;
@ -1017,8 +1134,10 @@ export interface SelfMetadataFactory {
export declare function sequence(steps: AnimationMetadata[]): AnimationSequenceMetadata; export declare function sequence(steps: AnimationMetadata[]): AnimationSequenceMetadata;
/** @experimental */
export declare function setTestabilityGetter(getter: GetTestability): void; export declare function setTestabilityGetter(getter: GetTestability): void;
/** @stable */
export declare class SimpleChange { export declare class SimpleChange {
currentValue: any; currentValue: any;
previousValue: any; previousValue: any;
@ -1026,16 +1145,20 @@ export declare class SimpleChange {
isFirstChange(): boolean; isFirstChange(): boolean;
} }
/** @stable */
export interface SimpleChanges { export interface SimpleChanges {
[propName: string]: SimpleChange; [propName: string]: SimpleChange;
} }
/** @stable */
export declare var SkipSelf: SkipSelfMetadataFactory; export declare var SkipSelf: SkipSelfMetadataFactory;
/** @stable */
export declare class SkipSelfMetadata { export declare class SkipSelfMetadata {
toString(): string; toString(): string;
} }
/** @stable */
export interface SkipSelfMetadataFactory { export interface SkipSelfMetadataFactory {
(): any; (): any;
new (): SkipSelfMetadata; new (): SkipSelfMetadata;
@ -1049,22 +1172,26 @@ export declare function style(tokens: string | {
[key: string]: string | number; [key: string]: string | number;
}>): AnimationStyleMetadata; }>): AnimationStyleMetadata;
/** @experimental */
export declare class SystemJsCmpFactoryResolver implements ComponentResolver { export declare class SystemJsCmpFactoryResolver implements ComponentResolver {
clearCache(): void; clearCache(): void;
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>; resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
} }
/** @experimental */
export declare class SystemJsComponentResolver implements ComponentResolver { export declare class SystemJsComponentResolver implements ComponentResolver {
constructor(_resolver: ComponentResolver); constructor(_resolver: ComponentResolver);
clearCache(): void; clearCache(): void;
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>; resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
} }
/** @stable */
export declare abstract class TemplateRef<C> { export declare abstract class TemplateRef<C> {
elementRef: ElementRef; elementRef: ElementRef;
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>; abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
} }
/** @experimental */
export declare class Testability { export declare class Testability {
constructor(_ngZone: NgZone); constructor(_ngZone: NgZone);
decreasePendingRequestCount(): number; decreasePendingRequestCount(): number;
@ -1076,6 +1203,7 @@ export declare class Testability {
whenStable(callback: Function): void; whenStable(callback: Function): void;
} }
/** @experimental */
export declare class TestabilityRegistry { export declare class TestabilityRegistry {
constructor(); constructor();
findTestabilityInTree(elem: Node, findInAncestors?: boolean): Testability; findTestabilityInTree(elem: Node, findInAncestors?: boolean): Testability;
@ -1102,14 +1230,17 @@ export interface TypeDecorator {
Class(obj: ClassDefinition): ConcreteType; Class(obj: ClassDefinition): ConcreteType;
} }
/** @stable */
export declare var ViewChild: ViewChildMetadataFactory; export declare var ViewChild: ViewChildMetadataFactory;
/** @stable */
export declare class ViewChildMetadata extends ViewQueryMetadata { export declare class ViewChildMetadata extends ViewQueryMetadata {
constructor(_selector: Type | string, {read}?: { constructor(_selector: Type | string, {read}?: {
read?: any; read?: any;
}); });
} }
/** @stable */
export interface ViewChildMetadataFactory { export interface ViewChildMetadataFactory {
(selector: Type | string, {read}?: { (selector: Type | string, {read}?: {
read?: any; read?: any;
@ -1119,14 +1250,17 @@ export interface ViewChildMetadataFactory {
}): ViewChildMetadataFactory; }): ViewChildMetadataFactory;
} }
/** @stable */
export declare var ViewChildren: ViewChildrenMetadataFactory; export declare var ViewChildren: ViewChildrenMetadataFactory;
/** @stable */
export declare class ViewChildrenMetadata extends ViewQueryMetadata { export declare class ViewChildrenMetadata extends ViewQueryMetadata {
constructor(_selector: Type | string, {read}?: { constructor(_selector: Type | string, {read}?: {
read?: any; read?: any;
}); });
} }
/** @stable */
export interface ViewChildrenMetadataFactory { export interface ViewChildrenMetadataFactory {
(selector: Type | string, {read}?: { (selector: Type | string, {read}?: {
read?: any; read?: any;
@ -1136,6 +1270,7 @@ export interface ViewChildrenMetadataFactory {
}): ViewChildrenMetadata; }): ViewChildrenMetadata;
} }
/** @stable */
export declare abstract class ViewContainerRef { export declare abstract class ViewContainerRef {
element: ElementRef; element: ElementRef;
injector: Injector; injector: Injector;
@ -1165,6 +1300,7 @@ export interface ViewDecorator extends TypeDecorator {
}): ViewDecorator; }): ViewDecorator;
} }
/** @stable */
export declare enum ViewEncapsulation { export declare enum ViewEncapsulation {
Emulated = 0, Emulated = 0,
Native = 1, Native = 1,
@ -1219,8 +1355,10 @@ export interface ViewMetadataFactory {
}): ViewMetadata; }): ViewMetadata;
} }
/** @deprecated */
export declare var ViewQuery: QueryMetadataFactory; export declare var ViewQuery: QueryMetadataFactory;
/** @deprecated */
export declare class ViewQueryMetadata extends QueryMetadata { export declare class ViewQueryMetadata extends QueryMetadata {
isViewQuery: boolean; isViewQuery: boolean;
constructor(_selector: Type | string, {descendants, first, read}?: { constructor(_selector: Type | string, {descendants, first, read}?: {
@ -1231,11 +1369,13 @@ export declare class ViewQueryMetadata extends QueryMetadata {
toString(): string; toString(): string;
} }
/** @stable */
export declare abstract class ViewRef { export declare abstract class ViewRef {
destroyed: boolean; destroyed: boolean;
abstract onDestroy(callback: Function): any; abstract onDestroy(callback: Function): any;
} }
/** @stable */
export declare class WrappedException extends BaseWrappedException { export declare class WrappedException extends BaseWrappedException {
context: any; context: any;
message: string; message: string;
@ -1247,20 +1387,25 @@ export declare class WrappedException extends BaseWrappedException {
toString(): string; toString(): string;
} }
/** @stable */
export declare class WrappedValue { export declare class WrappedValue {
wrapped: any; wrapped: any;
constructor(wrapped: any); constructor(wrapped: any);
static wrap(value: any): WrappedValue; static wrap(value: any): WrappedValue;
} }
/** @experimental */
export declare var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn; export declare var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
/** @experimental */
export declare var wtfEndTimeRange: (range: any) => void; export declare var wtfEndTimeRange: (range: any) => void;
/** @experimental */
export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T; export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
export interface WtfScopeFn { export interface WtfScopeFn {
(arg0?: any, arg1?: any): any; (arg0?: any, arg1?: any): any;
} }
/** @experimental */
export declare var wtfStartTimeRange: (rangeType: string, action: string) => any; export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;

View File

@ -1,11 +1,14 @@
export declare function addProviders(providers: Array<any>): void; export declare function addProviders(providers: Array<any>): void;
/** @deprecated */
export declare var afterEach: Function; export declare var afterEach: Function;
export declare function async(fn: Function): (done: any) => any; export declare function async(fn: Function): (done: any) => any;
/** @deprecated */
export declare var beforeEach: any; export declare var beforeEach: any;
/** @deprecated */
export declare function beforeEachProviders(fn: () => Array<any>): void; export declare function beforeEachProviders(fn: () => Array<any>): void;
export declare class ComponentFixture<T> { export declare class ComponentFixture<T> {
@ -29,24 +32,30 @@ export declare var ComponentFixtureAutoDetect: OpaqueToken;
export declare var ComponentFixtureNoNgZone: OpaqueToken; export declare var ComponentFixtureNoNgZone: OpaqueToken;
/** @deprecated */
export declare var ddescribe: any; export declare var ddescribe: any;
/** @deprecated */
export declare var describe: Function; export declare var describe: Function;
export declare function discardPeriodicTasks(): void; export declare function discardPeriodicTasks(): void;
/** @deprecated */
export declare var expect: Function; export declare var expect: Function;
export declare function fakeAsync(fn: Function): (...args: any[]) => any; export declare function fakeAsync(fn: Function): (...args: any[]) => any;
/** @deprecated */
export declare var fdescribe: any; export declare var fdescribe: any;
/** @deprecated */
export declare var fit: any; export declare var fit: any;
export declare function flushMicrotasks(): void; export declare function flushMicrotasks(): void;
export declare function getTestInjector(): TestInjector; export declare function getTestInjector(): TestInjector;
/** @deprecated */
export declare var iit: any; export declare var iit: any;
export declare function inject(tokens: any[], fn: Function): () => any; export declare function inject(tokens: any[], fn: Function): () => any;
@ -56,6 +65,7 @@ export declare class InjectSetupWrapper {
inject(tokens: any[], fn: Function): () => any; inject(tokens: any[], fn: Function): () => any;
} }
/** @deprecated */
export declare var it: any; export declare var it: any;
export declare function resetBaseTestProviders(): void; export declare function resetBaseTestProviders(): void;
@ -68,7 +78,7 @@ export declare class TestComponentBuilder {
createAsync(rootComponentType: Type): Promise<ComponentFixture<any>>; createAsync(rootComponentType: Type): Promise<ComponentFixture<any>>;
createFakeAsync(rootComponentType: Type): ComponentFixture<any>; createFakeAsync(rootComponentType: Type): ComponentFixture<any>;
protected createFromFactory<C>(ngZone: NgZone, componentFactory: ComponentFactory<C>): ComponentFixture<C>; protected createFromFactory<C>(ngZone: NgZone, componentFactory: ComponentFactory<C>): ComponentFixture<C>;
createSync<C>(componentFactory: ComponentFactory<C>): ComponentFixture<C>; /** @deprecated */ createSync<C>(componentFactory: ComponentFactory<C>): ComponentFixture<C>;
overrideAnimations(componentType: Type, animations: AnimationEntryMetadata[]): TestComponentBuilder; overrideAnimations(componentType: Type, animations: AnimationEntryMetadata[]): TestComponentBuilder;
overrideDirective(componentType: Type, from: Type, to: Type): TestComponentBuilder; overrideDirective(componentType: Type, from: Type, to: Type): TestComponentBuilder;
overrideProviders(type: Type, providers: any[]): TestComponentBuilder; overrideProviders(type: Type, providers: any[]): TestComponentBuilder;
@ -95,6 +105,8 @@ export declare function tick(millis?: number): void;
export declare function withProviders(providers: () => any): InjectSetupWrapper; export declare function withProviders(providers: () => any): InjectSetupWrapper;
/** @deprecated */
export declare var xdescribe: Function; export declare var xdescribe: Function;
/** @deprecated */
export declare var xit: any; export declare var xit: any;

View File

@ -1,3 +1,4 @@
/** @experimental */
export declare abstract class AbstractControl { export declare abstract class AbstractControl {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
dirty: boolean; dirty: boolean;
@ -42,6 +43,7 @@ export declare abstract class AbstractControl {
}): void; }): void;
} }
/** @experimental */
export declare abstract class AbstractControlDirective { export declare abstract class AbstractControlDirective {
control: AbstractControl; control: AbstractControl;
dirty: boolean; dirty: boolean;
@ -62,6 +64,7 @@ export interface AsyncValidatorFn {
(c: AbstractControl): any; (c: AbstractControl): any;
} }
/** @experimental */
export declare class CheckboxControlValueAccessor implements ControlValueAccessor { export declare class CheckboxControlValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
@ -71,18 +74,21 @@ export declare class CheckboxControlValueAccessor implements ControlValueAccesso
writeValue(value: any): void; writeValue(value: any): void;
} }
/** @experimental */
export declare class ControlContainer extends AbstractControlDirective { export declare class ControlContainer extends AbstractControlDirective {
formDirective: Form; formDirective: Form;
name: string; name: string;
path: string[]; path: string[];
} }
/** @experimental */
export interface ControlValueAccessor { export interface ControlValueAccessor {
registerOnChange(fn: any): void; registerOnChange(fn: any): void;
registerOnTouched(fn: any): void; registerOnTouched(fn: any): void;
writeValue(obj: any): void; writeValue(obj: any): void;
} }
/** @experimental */
export declare class DefaultValueAccessor implements ControlValueAccessor { export declare class DefaultValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
@ -94,6 +100,7 @@ export declare class DefaultValueAccessor implements ControlValueAccessor {
export declare function disableDeprecatedForms(): any[]; export declare function disableDeprecatedForms(): any[];
/** @experimental */
export interface Form { export interface Form {
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
addFormGroup(dir: AbstractFormGroupDirective): void; addFormGroup(dir: AbstractFormGroupDirective): void;
@ -104,10 +111,12 @@ export interface Form {
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
/** @experimental */
export declare const FORM_DIRECTIVES: Type[]; export declare const FORM_DIRECTIVES: Type[];
export declare const FORM_PROVIDERS: Type[]; export declare const FORM_PROVIDERS: Type[];
/** @experimental */
export declare class FormArray extends AbstractControl { export declare class FormArray extends AbstractControl {
controls: AbstractControl[]; controls: AbstractControl[];
length: number; length: number;
@ -118,6 +127,7 @@ export declare class FormArray extends AbstractControl {
removeAt(index: number): void; removeAt(index: number): void;
} }
/** @experimental */
export declare class FormArrayName extends ControlContainer implements OnInit, OnDestroy { export declare class FormArrayName extends ControlContainer implements OnInit, OnDestroy {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: FormArray; control: FormArray;
@ -130,6 +140,7 @@ export declare class FormArrayName extends ControlContainer implements OnInit, O
ngOnInit(): void; ngOnInit(): void;
} }
/** @experimental */
export declare class FormBuilder { export declare class FormBuilder {
array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): FormArray; array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): FormArray;
control(value: Object, validator?: ValidatorFn | ValidatorFn[], asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]): FormControl; control(value: Object, validator?: ValidatorFn | ValidatorFn[], asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]): FormControl;
@ -140,6 +151,7 @@ export declare class FormBuilder {
}): FormGroup; }): FormGroup;
} }
/** @experimental */
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; registerOnChange(fn: Function): void;
@ -150,6 +162,7 @@ export declare class FormControl extends AbstractControl {
}): void; }): void;
} }
/** @experimental */
export declare class FormControlDirective extends NgControl implements OnChanges { export declare class FormControlDirective extends NgControl implements OnChanges {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: FormControl; control: FormControl;
@ -164,6 +177,7 @@ export declare class FormControlDirective extends NgControl implements OnChanges
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class FormControlName extends NgControl implements OnChanges, OnDestroy { export declare class FormControlName extends NgControl implements OnChanges, OnDestroy {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: FormControl; control: FormControl;
@ -179,6 +193,7 @@ export declare class FormControlName extends NgControl implements OnChanges, OnD
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class FormGroup extends AbstractControl { export declare class FormGroup extends AbstractControl {
controls: { controls: {
[key: string]: AbstractControl; [key: string]: AbstractControl;
@ -196,6 +211,7 @@ export declare class FormGroup extends AbstractControl {
removeControl(name: string): void; removeControl(name: string): void;
} }
/** @experimental */
export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges { export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges {
control: FormGroup; control: FormGroup;
directives: NgControl[]; directives: NgControl[];
@ -219,11 +235,13 @@ export declare class FormGroupDirective extends ControlContainer implements Form
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
/** @experimental */
export declare class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy { export declare class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy {
name: string; name: string;
constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]); constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
} }
/** @experimental */
export declare class MaxLengthValidator implements Validator { export declare class MaxLengthValidator implements Validator {
constructor(maxLength: string); constructor(maxLength: string);
validate(c: AbstractControl): { validate(c: AbstractControl): {
@ -231,6 +249,7 @@ export declare class MaxLengthValidator implements Validator {
}; };
} }
/** @experimental */
export declare class MinLengthValidator implements Validator { export declare class MinLengthValidator implements Validator {
constructor(minLength: string); constructor(minLength: string);
validate(c: AbstractControl): { validate(c: AbstractControl): {
@ -238,12 +257,16 @@ export declare class MinLengthValidator implements Validator {
}; };
} }
/** @experimental */
export declare const NG_ASYNC_VALIDATORS: OpaqueToken; export declare const NG_ASYNC_VALIDATORS: OpaqueToken;
/** @experimental */
export declare const NG_VALIDATORS: OpaqueToken; export declare const NG_VALIDATORS: OpaqueToken;
/** @experimental */
export declare const NG_VALUE_ACCESSOR: OpaqueToken; export declare const NG_VALUE_ACCESSOR: OpaqueToken;
/** @experimental */
export declare abstract class NgControl extends AbstractControlDirective { export declare abstract class NgControl extends AbstractControlDirective {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
name: string; name: string;
@ -252,6 +275,7 @@ export declare abstract class NgControl extends AbstractControlDirective {
abstract viewToModelUpdate(newValue: any): void; abstract viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class NgControlStatus { export declare class NgControlStatus {
ngClassDirty: boolean; ngClassDirty: boolean;
ngClassInvalid: boolean; ngClassInvalid: boolean;
@ -262,6 +286,7 @@ export declare class NgControlStatus {
constructor(cd: NgControl); constructor(cd: NgControl);
} }
/** @experimental */
export declare class NgForm extends ControlContainer implements Form { export declare class NgForm extends ControlContainer implements Form {
control: FormGroup; control: FormGroup;
controls: { controls: {
@ -283,6 +308,7 @@ export declare class NgForm extends ControlContainer implements Form {
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }
/** @experimental */
export declare class NgModel extends NgControl implements OnChanges, OnDestroy { export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
asyncValidator: AsyncValidatorFn; asyncValidator: AsyncValidatorFn;
control: FormControl; control: FormControl;
@ -303,11 +329,13 @@ export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
viewToModelUpdate(newValue: any): void; viewToModelUpdate(newValue: any): void;
} }
/** @experimental */
export declare class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy { export declare class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy {
name: string; name: string;
constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]); constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
} }
/** @experimental */
export declare class NgSelectOption implements OnDestroy { export declare class NgSelectOption implements OnDestroy {
id: string; id: string;
ngValue: any; ngValue: any;
@ -316,6 +344,7 @@ export declare class NgSelectOption implements OnDestroy {
ngOnDestroy(): void; ngOnDestroy(): void;
} }
/** @experimental */
export declare class PatternValidator implements Validator { export declare class PatternValidator implements Validator {
constructor(pattern: string); constructor(pattern: string);
validate(c: AbstractControl): { validate(c: AbstractControl): {
@ -327,9 +356,11 @@ export declare function provideForms(): any[];
export declare const REACTIVE_FORM_DIRECTIVES: Type[]; export declare const REACTIVE_FORM_DIRECTIVES: Type[];
/** @experimental */
export declare class RequiredValidator { export declare class RequiredValidator {
} }
/** @experimental */
export declare class SelectControlValueAccessor implements ControlValueAccessor { export declare class SelectControlValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void; onChange: (_: any) => void;
onTouched: () => void; onTouched: () => void;
@ -352,6 +383,7 @@ export interface ValidatorFn {
}; };
} }
/** @experimental */
export declare class Validators { export declare class Validators {
static compose(validators: ValidatorFn[]): ValidatorFn; static compose(validators: ValidatorFn[]): ValidatorFn;
static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn; static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn;

View File

@ -59,12 +59,14 @@ export declare class Http {
request(url: string | Request, options?: RequestOptionsArgs): Observable<Response>; request(url: string | Request, options?: RequestOptionsArgs): Observable<Response>;
} }
/** @deprecated */
export declare const HTTP_BINDINGS: any[]; export declare const HTTP_BINDINGS: any[];
export declare const HTTP_PROVIDERS: any[]; export declare const HTTP_PROVIDERS: any[];
export declare function httpFactory(xhrBackend: XHRBackend, requestOptions: RequestOptions): Http; export declare function httpFactory(xhrBackend: XHRBackend, requestOptions: RequestOptions): Http;
/** @deprecated */
export declare const JSON_BINDINGS: any[]; export declare const JSON_BINDINGS: any[];
export declare class Jsonp extends Http { export declare class Jsonp extends Http {

View File

@ -1,7 +1,9 @@
export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>; export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;
/** @experimental */
export declare function bootstrapWorkerApp(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>; export declare function bootstrapWorkerApp(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;
/** @experimental */
export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: Array<any>): Promise<ApplicationRef>; export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: Array<any>): Promise<ApplicationRef>;
export declare const BROWSER_APP_COMPILER_PROVIDERS: Array<any>; export declare const BROWSER_APP_COMPILER_PROVIDERS: Array<any>;

View File

@ -28,10 +28,12 @@ export declare class By {
static directive(type: Type): Predicate<DebugElement>; static directive(type: Type): Predicate<DebugElement>;
} }
/** @experimental */
export declare abstract class ClientMessageBroker { export declare abstract class ClientMessageBroker {
abstract runOnService(args: UiArguments, returnType: Type): Promise<any>; abstract runOnService(args: UiArguments, returnType: Type): Promise<any>;
} }
/** @experimental */
export declare abstract class ClientMessageBrokerFactory { export declare abstract class ClientMessageBrokerFactory {
abstract createMessageBroker(channel: string, runInZone?: boolean): ClientMessageBroker; abstract createMessageBroker(channel: string, runInZone?: boolean): ClientMessageBroker;
} }
@ -68,6 +70,7 @@ export declare class EventManager {
getZone(): NgZone; getZone(): NgZone;
} }
/** @experimental */
export declare class FnArg { export declare class FnArg {
type: Type; type: Type;
value: any; value: any;
@ -95,6 +98,7 @@ export declare class KeyEventsPlugin extends EventManagerPlugin {
}; };
} }
/** @experimental */
export declare abstract class MessageBus implements MessageBusSource, MessageBusSink { export declare abstract class MessageBus implements MessageBusSource, MessageBusSink {
abstract attachToZone(zone: NgZone): void; abstract attachToZone(zone: NgZone): void;
abstract from(channel: string): EventEmitter<any>; abstract from(channel: string): EventEmitter<any>;
@ -102,20 +106,24 @@ export declare abstract class MessageBus implements MessageBusSource, MessageBus
abstract to(channel: string): EventEmitter<any>; abstract to(channel: string): EventEmitter<any>;
} }
/** @experimental */
export interface MessageBusSink { export interface MessageBusSink {
attachToZone(zone: NgZone): void; attachToZone(zone: NgZone): void;
initChannel(channel: string, runInZone: boolean): void; initChannel(channel: string, runInZone: boolean): void;
to(channel: string): EventEmitter<any>; to(channel: string): EventEmitter<any>;
} }
/** @experimental */
export interface MessageBusSource { export interface MessageBusSource {
attachToZone(zone: NgZone): void; attachToZone(zone: NgZone): void;
from(channel: string): EventEmitter<any>; from(channel: string): EventEmitter<any>;
initChannel(channel: string, runInZone: boolean): void; initChannel(channel: string, runInZone: boolean): void;
} }
/** @experimental */
export declare const PRIMITIVE: Type; export declare const PRIMITIVE: Type;
/** @experimental */
export declare class ReceivedMessage { export declare class ReceivedMessage {
args: any[]; args: any[];
id: string; id: string;
@ -143,6 +151,7 @@ export interface SafeUrl extends SafeValue {
export declare var SecurityContext: typeof t.SecurityContext; export declare var SecurityContext: typeof t.SecurityContext;
/** @experimental */
export declare abstract class ServiceMessageBroker { export declare abstract class ServiceMessageBroker {
abstract registerMethod(methodName: string, signature: Type[], method: Function, returnType?: Type): void; abstract registerMethod(methodName: string, signature: Type[], method: Function, returnType?: Type): void;
} }
@ -151,24 +160,29 @@ export declare abstract class ServiceMessageBrokerFactory {
abstract createMessageBroker(channel: string, runInZone?: boolean): ServiceMessageBroker; abstract createMessageBroker(channel: string, runInZone?: boolean): ServiceMessageBroker;
} }
/** @experimental */
export declare class Title { export declare class Title {
getTitle(): string; getTitle(): string;
setTitle(newTitle: string): void; setTitle(newTitle: string): void;
} }
/** @experimental */
export declare class UiArguments { export declare class UiArguments {
args: FnArg[]; args: FnArg[];
method: string; method: string;
constructor(method: string, args?: FnArg[]); constructor(method: string, args?: FnArg[]);
} }
/** @experimental */
export declare class WebWorkerInstance { export declare class WebWorkerInstance {
bus: MessageBus; bus: MessageBus;
worker: Worker; worker: Worker;
} }
/** @experimental */
export declare const WORKER_APP_APPLICATION_PROVIDERS: Array<any>; export declare const WORKER_APP_APPLICATION_PROVIDERS: Array<any>;
/** @experimental */
export declare const WORKER_APP_LOCATION_PROVIDERS: ({ export declare const WORKER_APP_LOCATION_PROVIDERS: ({
provide: typeof PlatformLocation; provide: typeof PlatformLocation;
useClass: typeof WebWorkerPlatformLocation; useClass: typeof WebWorkerPlatformLocation;
@ -179,12 +193,16 @@ export declare const WORKER_APP_LOCATION_PROVIDERS: ({
deps: (typeof PlatformLocation | typeof NgZone)[]; deps: (typeof PlatformLocation | typeof NgZone)[];
})[]; })[];
/** @experimental */
export declare const WORKER_APP_PLATFORM_PROVIDERS: Array<any>; export declare const WORKER_APP_PLATFORM_PROVIDERS: Array<any>;
/** @experimental */
export declare const WORKER_SCRIPT: OpaqueToken; export declare const WORKER_SCRIPT: OpaqueToken;
/** @experimental */
export declare const WORKER_UI_APPLICATION_PROVIDERS: Array<any>; export declare const WORKER_UI_APPLICATION_PROVIDERS: Array<any>;
/** @experimental */
export declare const WORKER_UI_LOCATION_PROVIDERS: (typeof MessageBasedPlatformLocation | typeof BrowserPlatformLocation | { export declare const WORKER_UI_LOCATION_PROVIDERS: (typeof MessageBasedPlatformLocation | typeof BrowserPlatformLocation | {
provide: any; provide: any;
useFactory: (injector: Injector) => () => void; useFactory: (injector: Injector) => () => void;
@ -192,10 +210,14 @@ export declare const WORKER_UI_LOCATION_PROVIDERS: (typeof MessageBasedPlatformL
deps: typeof Injector[]; deps: typeof Injector[];
})[]; })[];
/** @experimental */
export declare const WORKER_UI_PLATFORM_PROVIDERS: Array<any>; export declare const WORKER_UI_PLATFORM_PROVIDERS: Array<any>;
/** @experimental */
export declare const WORKER_UI_STARTABLE_MESSAGING_SERVICE: OpaqueToken; export declare const WORKER_UI_STARTABLE_MESSAGING_SERVICE: OpaqueToken;
/** @experimental */
export declare function workerAppPlatform(): PlatformRef; export declare function workerAppPlatform(): PlatformRef;
/** @experimental */
export declare function workerUiPlatform(): PlatformRef; export declare function workerUiPlatform(): PlatformRef;

View File

@ -1,5 +1,8 @@
/** @experimental */
export declare const SERVER_PLATFORM_PROVIDERS: Array<any>; export declare const SERVER_PLATFORM_PROVIDERS: Array<any>;
/** @experimental */
export declare function serverBootstrap(appComponentType: Type, providers: Array<any>): Promise<ComponentRef<any>>; export declare function serverBootstrap(appComponentType: Type, providers: Array<any>): Promise<ComponentRef<any>>;
/** @experimental */
export declare function serverPlatform(): PlatformRef; export declare function serverPlatform(): PlatformRef;