docs: remove all deprecated @stable jsdoc tags (#23210)

These are no longer needed as stable docs are computed as those that
do not have `@experimental` or `@deprecated` tags.

PR Close #23210
This commit is contained in:
Pete Bacon Darwin
2018-04-05 22:31:44 +01:00
committed by Igor Minar
parent ee145790d7
commit 4b96a58c5a
155 changed files with 363 additions and 643 deletions
-37
View File
@@ -1,7 +1,5 @@
/** @stable */
export declare const APP_BASE_HREF: InjectionToken<string>;
/** @stable */
export declare class AsyncPipe implements OnDestroy, PipeTransform {
constructor(_ref: ChangeDetectorRef);
ngOnDestroy(): void;
@@ -11,41 +9,34 @@ export declare class AsyncPipe implements OnDestroy, PipeTransform {
transform<T>(obj: null): null;
}
/** @stable */
export declare class CommonModule {
}
/** @stable */
export declare class CurrencyPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string | null;
}
/** @stable */
export declare class DatePipe implements PipeTransform {
constructor(locale: string);
transform(value: any, format?: string, timezone?: string, locale?: string): string | null;
}
/** @stable */
export declare class DecimalPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, digitsInfo?: string, locale?: string): string | null;
}
/** @stable */
export declare class DeprecatedCurrencyPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, currencyCode?: string, symbolDisplay?: boolean, digits?: string): string | null;
}
/** @stable */
export declare class DeprecatedDatePipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, pattern?: string): string | null;
}
/** @stable */
export declare class DeprecatedDecimalPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, digits?: string): string | null;
@@ -55,25 +46,19 @@ export declare class DeprecatedDecimalPipe implements PipeTransform {
export declare class DeprecatedI18NPipesModule {
}
/** @stable */
export declare class DeprecatedPercentPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, digits?: string): string | null;
}
/** @stable */
export declare const DOCUMENT: InjectionToken<Document>;
/** @stable */
export declare function formatCurrency(value: number, locale: string, currency: string, currencyCode?: string, digitsInfo?: string): string;
/** @stable */
export declare function formatDate(value: string | number | Date, format: string, locale: string, timezone?: string): string;
/** @stable */
export declare function formatNumber(value: number, locale: string, digitsInfo?: string): string;
/** @stable */
export declare function formatPercent(value: number, locale: string, digitsInfo?: string): string;
/** @experimental */
@@ -147,7 +132,6 @@ export declare function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay
/** @experimental */
export declare function getNumberOfCurrencyDigits(code: string): number;
/** @stable */
export declare class HashLocationStrategy extends LocationStrategy {
constructor(_platformLocation: PlatformLocation, _baseHref?: string);
back(): void;
@@ -187,12 +171,10 @@ export declare function isPlatformWorkerApp(platformId: Object): boolean;
/** @experimental */
export declare function isPlatformWorkerUi(platformId: Object): boolean;
/** @stable */
export declare class JsonPipe implements PipeTransform {
transform(value: any): string;
}
/** @stable */
export declare class Location {
constructor(platformStrategy: LocationStrategy);
back(): void;
@@ -223,7 +205,6 @@ export interface LocationChangeListener {
(e: LocationChangeEvent): any;
}
/** @stable */
export declare abstract class LocationStrategy {
abstract back(): void;
abstract forward(): void;
@@ -235,12 +216,10 @@ export declare abstract class LocationStrategy {
abstract replaceState(state: any, title: string, url: string, queryParams: string): void;
}
/** @stable */
export declare class LowerCasePipe implements PipeTransform {
transform(value: string): string;
}
/** @stable */
export declare class NgClass implements DoCheck {
klass: string;
ngClass: string | string[] | Set<string> | {
@@ -261,7 +240,6 @@ export declare class NgComponentOutlet implements OnChanges, OnDestroy {
ngOnDestroy(): void;
}
/** @stable */
export declare class NgForOf<T> implements DoCheck, OnChanges {
ngForOf: NgIterable<T>;
ngForTemplate: TemplateRef<NgForOfContext<T>>;
@@ -271,7 +249,6 @@ export declare class NgForOf<T> implements DoCheck, OnChanges {
ngOnChanges(changes: SimpleChanges): void;
}
/** @stable */
export declare class NgForOfContext<T> {
$implicit: T;
count: number;
@@ -284,7 +261,6 @@ export declare class NgForOfContext<T> {
constructor($implicit: T, ngForOf: NgIterable<T>, index: number, count: number);
}
/** @stable */
export declare class NgIf {
ngIf: any;
ngIfElse: TemplateRef<NgIfContext> | null;
@@ -292,7 +268,6 @@ export declare class NgIf {
constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<NgIfContext>);
}
/** @stable */
export declare class NgIfContext {
$implicit: any;
ngIf: any;
@@ -325,7 +300,6 @@ export declare class NgPluralCase {
constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef, ngPlural: NgPlural);
}
/** @stable */
export declare class NgStyle implements DoCheck {
ngStyle: {
[key: string]: string;
@@ -334,24 +308,20 @@ export declare class NgStyle implements DoCheck {
ngDoCheck(): void;
}
/** @stable */
export declare class NgSwitch {
ngSwitch: any;
}
/** @stable */
export declare class NgSwitchCase implements DoCheck {
ngSwitchCase: any;
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
ngDoCheck(): void;
}
/** @stable */
export declare class NgSwitchDefault {
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
}
/** @stable */
export declare class NgTemplateOutlet implements OnChanges {
ngTemplateOutlet: TemplateRef<any>;
ngTemplateOutletContext: Object;
@@ -385,7 +355,6 @@ export declare enum NumberSymbol {
CurrencyGroup = 13,
}
/** @stable */
export declare class PathLocationStrategy extends LocationStrategy {
constructor(_platformLocation: PlatformLocation, href?: string);
back(): void;
@@ -398,13 +367,11 @@ export declare class PathLocationStrategy extends LocationStrategy {
replaceState(state: any, title: string, url: string, queryParams: string): void;
}
/** @stable */
export declare class PercentPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, digitsInfo?: string, locale?: string): string | null;
}
/** @stable */
export declare abstract class PlatformLocation {
readonly abstract hash: string;
readonly abstract pathname: string;
@@ -439,7 +406,6 @@ export interface PopStateEvent {
/** @experimental */
export declare function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void;
/** @stable */
export declare class SlicePipe implements PipeTransform {
transform(value: any, start: number, end?: number): any;
}
@@ -450,7 +416,6 @@ export declare type Time = {
minutes: number;
};
/** @stable */
export declare class TitleCasePipe implements PipeTransform {
transform(value: string): string;
}
@@ -463,12 +428,10 @@ export declare enum TranslationWidth {
Short = 3,
}
/** @stable */
export declare class UpperCasePipe implements PipeTransform {
transform(value: string): string;
}
/** @stable */
export declare const VERSION: Version;
/** @experimental */
-28
View File
@@ -1,12 +1,9 @@
/** @stable */
export declare const HTTP_INTERCEPTORS: InjectionToken<HttpInterceptor[]>;
/** @stable */
export declare abstract class HttpBackend implements HttpHandler {
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
}
/** @stable */
export declare class HttpClient {
constructor(handler: HttpHandler);
delete<T>(url: string, options?: {
@@ -1478,15 +1475,12 @@ export declare class HttpClient {
}): Observable<any>;
}
/** @stable */
export declare class HttpClientJsonpModule {
}
/** @stable */
export declare class HttpClientModule {
}
/** @stable */
export declare class HttpClientXsrfModule {
static disable(): ModuleWithProviders;
static withOptions(options?: {
@@ -1495,13 +1489,11 @@ export declare class HttpClientXsrfModule {
}): ModuleWithProviders;
}
/** @stable */
export interface HttpDownloadProgressEvent extends HttpProgressEvent {
partialText?: string;
type: HttpEventType.DownloadProgress;
}
/** @stable */
export declare class HttpErrorResponse extends HttpResponseBase implements Error {
readonly error: any | null;
readonly message: string;
@@ -1516,10 +1508,8 @@ export declare class HttpErrorResponse extends HttpResponseBase implements Error
});
}
/** @stable */
export declare type HttpEvent<T> = HttpSentEvent | HttpHeaderResponse | HttpResponse<T> | HttpProgressEvent | HttpUserEvent<T>;
/** @stable */
export declare enum HttpEventType {
Sent = 0,
UploadProgress = 1,
@@ -1529,12 +1519,10 @@ export declare enum HttpEventType {
User = 5,
}
/** @stable */
export declare abstract class HttpHandler {
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
}
/** @stable */
export declare class HttpHeaderResponse extends HttpResponseBase {
readonly type: HttpEventType.ResponseHeader;
constructor(init?: {
@@ -1551,7 +1539,6 @@ export declare class HttpHeaderResponse extends HttpResponseBase {
}): HttpHeaderResponse;
}
/** @stable */
export declare class HttpHeaders {
constructor(headers?: string | {
[name: string]: string | string[];
@@ -1565,12 +1552,10 @@ export declare class HttpHeaders {
set(name: string, value: string | string[]): HttpHeaders;
}
/** @stable */
export interface HttpInterceptor {
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
}
/** @stable */
export interface HttpParameterCodec {
decodeKey(key: string): string;
decodeValue(value: string): string;
@@ -1578,7 +1563,6 @@ export interface HttpParameterCodec {
encodeValue(value: string): string;
}
/** @stable */
export declare class HttpParams {
constructor(options?: HttpParamsOptions);
append(param: string, value: string): HttpParams;
@@ -1591,14 +1575,12 @@ export declare class HttpParams {
toString(): string;
}
/** @stable */
export interface HttpProgressEvent {
loaded: number;
total?: number;
type: HttpEventType.DownloadProgress | HttpEventType.UploadProgress;
}
/** @stable */
export declare class HttpRequest<T> {
readonly body: T | null;
readonly headers: HttpHeaders;
@@ -1667,7 +1649,6 @@ export declare class HttpRequest<T> {
serializeBody(): ArrayBuffer | Blob | FormData | string | null;
}
/** @stable */
export declare class HttpResponse<T> extends HttpResponseBase {
readonly body: T | null;
readonly type: HttpEventType.Response;
@@ -1694,7 +1675,6 @@ export declare class HttpResponse<T> extends HttpResponseBase {
}): HttpResponse<V>;
}
/** @stable */
export declare abstract class HttpResponseBase {
readonly headers: HttpHeaders;
readonly ok: boolean;
@@ -1710,12 +1690,10 @@ export declare abstract class HttpResponseBase {
}, defaultStatus?: number, defaultStatusText?: string);
}
/** @stable */
export interface HttpSentEvent {
type: HttpEventType.Sent;
}
/** @stable */
export declare class HttpUrlEncodingCodec implements HttpParameterCodec {
decodeKey(k: string): string;
decodeValue(v: string): string;
@@ -1723,35 +1701,29 @@ export declare class HttpUrlEncodingCodec implements HttpParameterCodec {
encodeValue(v: string): string;
}
/** @stable */
export interface HttpUserEvent<T> {
type: HttpEventType.User;
}
/** @stable */
export declare class HttpXhrBackend implements HttpBackend {
constructor(xhrFactory: XhrFactory);
handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
}
/** @stable */
export declare abstract class HttpXsrfTokenExtractor {
abstract getToken(): string | null;
}
/** @stable */
export declare class JsonpClientBackend implements HttpBackend {
constructor(callbackMap: JsonpCallbackContext, document: any);
handle(req: HttpRequest<never>): Observable<HttpEvent<any>>;
}
/** @stable */
export declare class JsonpInterceptor {
constructor(jsonp: JsonpClientBackend);
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
}
/** @stable */
export declare abstract class XhrFactory {
abstract build(): XMLHttpRequest;
}
-4
View File
@@ -1,8 +1,6 @@
/** @stable */
export declare class HttpClientTestingModule {
}
/** @stable */
export declare abstract class HttpTestingController {
abstract expectNone(url: string, description?: string): void;
abstract expectNone(params: RequestMatch, description?: string): void;
@@ -18,13 +16,11 @@ export declare abstract class HttpTestingController {
}): void;
}
/** @stable */
export interface RequestMatch {
method?: string;
url?: string;
}
/** @stable */
export declare class TestRequest {
readonly cancelled: boolean;
request: HttpRequest<any>;
-1
View File
@@ -1,4 +1,3 @@
/** @stable */
export declare class MockLocationStrategy extends LocationStrategy {
internalBaseHref: string;
internalPath: string;
+14 -107
View File
@@ -1,19 +1,15 @@
/** @stable */
export interface AfterContentChecked {
ngAfterContentChecked(): void;
}
/** @stable */
export interface AfterContentInit {
ngAfterContentInit(): void;
}
/** @stable */
export interface AfterViewChecked {
ngAfterViewChecked(): void;
}
/** @stable */
export interface AfterViewInit {
ngAfterViewInit(): void;
}
@@ -42,7 +38,6 @@ export declare class ApplicationModule {
constructor(appRef: ApplicationRef);
}
/** @stable */
export declare class ApplicationRef {
readonly componentTypes: Type<any>[];
readonly components: ComponentRef<any>[];
@@ -60,16 +55,13 @@ export declare function asNativeElements(debugEls: DebugElement[]): any;
/** @experimental */
export declare function assertPlatform(requiredToken: any): PlatformRef;
/** @stable */
export declare const Attribute: AttributeDecorator;
/** @stable */
export declare enum ChangeDetectionStrategy {
OnPush = 0,
Default = 1,
}
/** @stable */
export declare abstract class ChangeDetectorRef {
abstract checkNoChanges(): void;
abstract detach(): void;
@@ -78,7 +70,6 @@ export declare abstract class ChangeDetectorRef {
abstract reattach(): void;
}
/** @stable */
export interface ClassProvider extends ClassSansProvider {
multi?: boolean;
provide: any;
@@ -88,7 +79,6 @@ export interface ClassProvider extends ClassSansProvider {
export interface CollectionChangeRecord<V> extends IterableChangeRecord<V> {
}
/** @stable */
export declare class Compiler {
clearCache(): void;
clearCacheFor(type: Type<any>): void;
@@ -115,16 +105,13 @@ export declare type CompilerOptions = {
preserveWhitespaces?: boolean;
};
/** @stable */
export declare const Component: ComponentDecorator;
/** @stable */
export interface ComponentDecorator {
/** @stable */ (obj: Component): TypeDecorator;
(obj: Component): TypeDecorator;
new (obj: Component): Component;
}
/** @stable */
export declare abstract class ComponentFactory<C> {
readonly abstract componentType: Type<any>;
readonly abstract inputs: {
@@ -140,13 +127,11 @@ export declare abstract class ComponentFactory<C> {
abstract create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any, ngModule?: NgModuleRef<any>): ComponentRef<C>;
}
/** @stable */
export declare abstract class ComponentFactoryResolver {
abstract resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>;
static NULL: ComponentFactoryResolver;
}
/** @stable */
export declare abstract class ComponentRef<C> {
readonly abstract changeDetectorRef: ChangeDetectorRef;
readonly abstract componentType: Type<any>;
@@ -158,12 +143,10 @@ export declare abstract class ComponentRef<C> {
abstract onDestroy(callback: Function): void;
}
/** @stable */
export declare const ContentChild: ContentChildDecorator;
/** @stable */
export interface ContentChildDecorator {
/** @stable */ (selector: Type<any> | Function | string, opts?: {
(selector: Type<any> | Function | string, opts?: {
read?: any;
}): any;
new (selector: Type<any> | Function | string, opts?: {
@@ -171,12 +154,10 @@ export interface ContentChildDecorator {
}): ContentChild;
}
/** @stable */
export declare const ContentChildren: ContentChildrenDecorator;
/** @stable */
export interface ContentChildrenDecorator {
/** @stable */ (selector: Type<any> | Function | string, opts?: {
(selector: Type<any> | Function | string, opts?: {
descendants?: boolean;
read?: any;
}): any;
@@ -195,7 +176,6 @@ export declare function createPlatform(injector: Injector): PlatformRef;
/** @experimental */
export declare function createPlatformFactory(parentPlatformFactory: ((extraProviders?: StaticProvider[]) => PlatformRef) | null, name: string, providers?: StaticProvider[]): (extraProviders?: StaticProvider[]) => PlatformRef;
/** @stable */
export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
/** @experimental */
@@ -276,23 +256,19 @@ export declare function defineInjector(options: {
/** @experimental */
export declare function destroyPlatform(): void;
/** @stable */
export declare const Directive: DirectiveDecorator;
/** @stable */
export interface DirectiveDecorator {
/** @stable */ (obj: Directive): TypeDecorator;
(obj: Directive): TypeDecorator;
new (obj: Directive): Directive;
}
/** @stable */
export interface DoCheck {
ngDoCheck(): void;
}
/** @stable */
export declare class ElementRef<T = any> {
/** @stable */ nativeElement: T;
nativeElement: T;
constructor(nativeElement: T);
}
@@ -302,15 +278,12 @@ export declare abstract class EmbeddedViewRef<C> extends ViewRef {
readonly abstract rootNodes: any[];
}
/** @stable */
export declare function enableProdMode(): void;
/** @stable */
export declare class ErrorHandler {
handleError(error: any): void;
}
/** @stable */
export declare class EventEmitter<T> extends Subject<T> {
__isAsync: boolean;
constructor(isAsync?: boolean);
@@ -318,13 +291,11 @@ export declare class EventEmitter<T> extends Subject<T> {
subscribe(generatorOrNext?: any, error?: any, complete?: any): any;
}
/** @stable */
export interface ExistingProvider extends ExistingSansProvider {
multi?: boolean;
provide: any;
}
/** @stable */
export interface FactoryProvider extends FactorySansProvider {
multi?: boolean;
provide: any;
@@ -353,19 +324,15 @@ export interface GetTestability {
findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null;
}
/** @stable */
export declare const Host: HostDecorator;
/** @stable */
export declare const HostBinding: HostBindingDecorator;
/** @stable */
export interface HostDecorator {
/** @stable */ (): any;
(): any;
new (): Host;
}
/** @stable */
export declare const HostListener: HostListenerDecorator;
/** @experimental */
@@ -373,15 +340,12 @@ export declare function inject<T>(token: Type<T> | InjectionToken<T>, notFoundVa
export declare function inject<T>(token: Type<T> | InjectionToken<T>, notFoundValue: T, flags?: InjectFlags): T;
export declare function inject<T>(token: Type<T> | InjectionToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
/** @stable */
export declare const Inject: InjectDecorator;
/** @stable */
export declare const Injectable: InjectableDecorator;
/** @stable */
export interface InjectableDecorator {
/** @stable */ (): any;
(): any;
(options?: {
providedIn: Type<any> | 'root' | null;
} & InjectableProvider): any;
@@ -405,20 +369,17 @@ export interface InjectableType<T> extends Type<T> {
ngInjectableDef: InjectableDef<T>;
}
/** @stable */
export interface InjectDecorator {
/** @stable */ (token: any): any;
(token: any): any;
new (token: any): Inject;
}
/** @stable */
export declare const enum InjectFlags {
Default = 0,
SkipSelf = 1,
Self = 2,
}
/** @stable */
export declare class InjectionToken<T> {
protected _desc: string;
readonly ngInjectableDef: InjectableDef<T> | undefined;
@@ -429,7 +390,6 @@ export declare class InjectionToken<T> {
toString(): string;
}
/** @stable */
export declare abstract class Injector {
abstract get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
/** @deprecated */ abstract get(token: any, notFoundValue?: any): any;
@@ -465,13 +425,11 @@ export interface InjectorTypeWithProviders<T> {
providers?: (Type<any> | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | any[])[];
}
/** @stable */
export declare const Input: InputDecorator;
/** @experimental */
export declare function isDevMode(): boolean;
/** @stable */
export interface IterableChangeRecord<V> {
readonly currentIndex: number | null;
readonly item: V;
@@ -479,7 +437,6 @@ export interface IterableChangeRecord<V> {
readonly trackById: any;
}
/** @stable */
export interface IterableChanges<V> {
forEachAddedItem(fn: (record: IterableChangeRecord<V>) => void): void;
forEachIdentityChange(fn: (record: IterableChangeRecord<V>) => void): void;
@@ -490,18 +447,15 @@ export interface IterableChanges<V> {
forEachRemovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
}
/** @stable */
export interface IterableDiffer<V> {
diff(object: NgIterable<V>): IterableChanges<V> | null;
}
/** @stable */
export interface IterableDifferFactory {
create<V>(trackByFn?: TrackByFunction<V>): IterableDiffer<V>;
supports(objects: any): boolean;
}
/** @stable */
export declare class IterableDiffers {
/** @deprecated */ factories: IterableDifferFactory[];
constructor(factories: IterableDifferFactory[]);
@@ -510,14 +464,12 @@ export declare class IterableDiffers {
static extend(factories: IterableDifferFactory[]): StaticProvider;
}
/** @stable */
export interface KeyValueChangeRecord<K, V> {
readonly currentValue: V | null;
readonly key: K;
readonly previousValue: V | null;
}
/** @stable */
export interface KeyValueChanges<K, V> {
forEachAddedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
forEachChangedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
@@ -526,7 +478,6 @@ export interface KeyValueChanges<K, V> {
forEachRemovedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
}
/** @stable */
export interface KeyValueDiffer<K, V> {
diff(object: Map<K, V>): KeyValueChanges<K, V>;
diff(object: {
@@ -534,13 +485,11 @@ export interface KeyValueDiffer<K, V> {
}): KeyValueChanges<string, V>;
}
/** @stable */
export interface KeyValueDifferFactory {
create<K, V>(): KeyValueDiffer<K, V>;
supports(objects: any): boolean;
}
/** @stable */
export declare class KeyValueDiffers {
/** @deprecated */ factories: KeyValueDifferFactory[];
constructor(factories: KeyValueDifferFactory[]);
@@ -566,16 +515,13 @@ export declare class ModuleWithComponentFactories<T> {
constructor(ngModuleFactory: NgModuleFactory<T>, componentFactories: ComponentFactory<any>[]);
}
/** @stable */
export interface ModuleWithProviders {
ngModule: Type<any>;
providers?: Provider[];
}
/** @stable */
export declare type NgIterable<T> = Array<T> | Iterable<T>;
/** @stable */
export declare const NgModule: NgModuleDecorator;
/** @experimental */
@@ -584,12 +530,10 @@ export declare abstract class NgModuleFactory<T> {
abstract create(parentInjector: Injector | null): NgModuleRef<T>;
}
/** @stable */
export declare abstract class NgModuleFactoryLoader {
abstract load(path: string): Promise<NgModuleFactory<any>>;
}
/** @stable */
export declare abstract class NgModuleRef<T> {
readonly abstract componentFactoryResolver: ComponentFactoryResolver;
readonly abstract injector: Injector;
@@ -629,40 +573,32 @@ export declare class NgZone {
/** @experimental */
export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
/** @stable */
export interface OnChanges {
ngOnChanges(changes: SimpleChanges): void;
}
/** @stable */
export interface OnDestroy {
ngOnDestroy(): void;
}
/** @stable */
export interface OnInit {
ngOnInit(): void;
}
/** @stable */
export declare const Optional: OptionalDecorator;
/** @stable */
export interface OptionalDecorator {
/** @stable */ (): any;
(): any;
new (): Optional;
}
/** @stable */
export declare const Output: OutputDecorator;
/** @experimental */
export declare const PACKAGE_ROOT_URL: InjectionToken<string>;
/** @stable */
export declare const Pipe: PipeDecorator;
/** @stable */
export interface PipeTransform {
transform(value: any, ...args: any[]): any;
}
@@ -676,11 +612,10 @@ export declare const PLATFORM_INITIALIZER: InjectionToken<(() => void)[]>;
/** @experimental */
export declare const platformCore: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
/** @stable */
export declare class PlatformRef {
readonly destroyed: boolean;
readonly injector: Injector;
/** @stable */ bootstrapModule<M>(moduleType: Type<M>, compilerOptions?: (CompilerOptions & BootstrapOptions) | Array<CompilerOptions & BootstrapOptions>): Promise<NgModuleRef<M>>;
bootstrapModule<M>(moduleType: Type<M>, compilerOptions?: (CompilerOptions & BootstrapOptions) | Array<CompilerOptions & BootstrapOptions>): Promise<NgModuleRef<M>>;
/** @experimental */ bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>, options?: BootstrapOptions): Promise<NgModuleRef<M>>;
destroy(): void;
onDestroy(callback: () => void): void;
@@ -691,14 +626,11 @@ export interface Predicate<T> {
(value: T): boolean;
}
/** @stable */
export declare type Provider = TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[];
/** @stable */
export declare abstract class Query {
}
/** @stable */
export declare class QueryList<T> {
readonly changes: Observable<any>;
readonly dirty: boolean;
@@ -851,7 +783,6 @@ export declare abstract class RootRenderer {
abstract renderComponent(componentType: RenderComponentType): Renderer;
}
/** @stable */
export declare abstract class Sanitizer {
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
}
@@ -861,7 +792,6 @@ export interface SchemaMetadata {
name: string;
}
/** @stable */
export declare enum SecurityContext {
NONE = 0,
HTML = 1,
@@ -871,19 +801,16 @@ export declare enum SecurityContext {
RESOURCE_URL = 5,
}
/** @stable */
export declare const Self: SelfDecorator;
/** @stable */
export interface SelfDecorator {
/** @stable */ (): any;
(): any;
new (): Self;
}
/** @experimental */
export declare function setTestabilityGetter(getter: GetTestability): void;
/** @stable */
export declare class SimpleChange {
currentValue: any;
firstChange: boolean;
@@ -892,21 +819,17 @@ export declare class SimpleChange {
isFirstChange(): boolean;
}
/** @stable */
export interface SimpleChanges {
[propName: string]: SimpleChange;
}
/** @stable */
export declare const SkipSelf: SkipSelfDecorator;
/** @stable */
export interface SkipSelfDecorator {
/** @stable */ (): any;
(): any;
new (): SkipSelf;
}
/** @stable */
export declare type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
/** @experimental */
@@ -921,7 +844,6 @@ export declare abstract class SystemJsNgModuleLoaderConfig {
factoryPathSuffix: string;
}
/** @stable */
export declare abstract class TemplateRef<C> {
readonly abstract elementRef: ElementRef;
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
@@ -950,7 +872,6 @@ export declare class TestabilityRegistry {
unregisterApplication(token: any): void;
}
/** @stable */
export interface TrackByFunction<T> {
(index: number, item: T): any;
}
@@ -961,26 +882,21 @@ export declare const TRANSLATIONS: InjectionToken<string>;
/** @experimental */
export declare const TRANSLATIONS_FORMAT: InjectionToken<string>;
/** @stable */
export declare const Type: FunctionConstructor;
/** @stable */
export interface TypeDecorator {
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void;
<T extends Type<any>>(type: T): T;
}
/** @stable */
export interface TypeProvider extends Type<any> {
}
/** @stable */
export interface ValueProvider extends ValueSansProvider {
multi?: boolean;
provide: any;
}
/** @stable */
export declare class Version {
full: string;
readonly major: string;
@@ -989,15 +905,12 @@ export declare class Version {
constructor(full: string);
}
/** @stable */
export declare const VERSION: Version;
/** @stable */
export declare const ViewChild: ViewChildDecorator;
/** @stable */
export interface ViewChildDecorator {
/** @stable */ (selector: Type<any> | Function | string, opts?: {
(selector: Type<any> | Function | string, opts?: {
read?: any;
}): any;
new (selector: Type<any> | Function | string, opts?: {
@@ -1005,12 +918,10 @@ export interface ViewChildDecorator {
}): ViewChild;
}
/** @stable */
export declare const ViewChildren: ViewChildrenDecorator;
/** @stable */
export interface ViewChildrenDecorator {
/** @stable */ (selector: Type<any> | Function | string, opts?: {
(selector: Type<any> | Function | string, opts?: {
read?: any;
}): any;
new (selector: Type<any> | Function | string, opts?: {
@@ -1018,7 +929,6 @@ export interface ViewChildrenDecorator {
}): ViewChildren;
}
/** @stable */
export declare abstract class ViewContainerRef {
readonly abstract element: ElementRef;
readonly abstract injector: Injector;
@@ -1035,21 +945,18 @@ export declare abstract class ViewContainerRef {
abstract remove(index?: number): void;
}
/** @stable */
export declare enum ViewEncapsulation {
Emulated = 0,
Native = 1,
None = 2,
}
/** @stable */
export declare abstract class ViewRef extends ChangeDetectorRef {
readonly abstract destroyed: boolean;
abstract destroy(): void;
abstract onDestroy(callback: Function): any;
}
/** @stable */
export declare class WrappedValue {
/** @deprecated */ wrapped: any;
constructor(value: any);
-4
View File
@@ -1,10 +1,8 @@
/** @stable */
export declare function async(fn: Function): (done: any) => any;
/** @experimental */
export declare function cleanupDocument(): void;
/** @stable */
export declare class ComponentFixture<T> {
changeDetectorRef: ChangeDetectorRef;
componentInstance: T;
@@ -47,7 +45,6 @@ export declare function flushMicrotasks(): void;
/** @experimental */
export declare function getTestBed(): TestBed;
/** @stable */
export declare function inject(tokens: any[], fn: Function): () => any;
/** @experimental */
@@ -66,7 +63,6 @@ export declare type MetadataOverride<T> = {
/** @experimental */
export declare function resetFakeAsyncZone(): void;
/** @stable */
export declare class TestBed implements Injector {
ngModule: Type<any> | Type<any>[];
platform: PlatformRef;
-41
View File
@@ -1,4 +1,3 @@
/** @stable */
export declare abstract class AbstractControl {
asyncValidator: AsyncValidatorFn | null;
readonly dirty: boolean;
@@ -64,7 +63,6 @@ export declare abstract class AbstractControl {
}): void;
}
/** @stable */
export declare abstract class AbstractControlDirective {
readonly abstract control: AbstractControl | null;
readonly dirty: boolean | null;
@@ -94,7 +92,6 @@ export interface AbstractControlOptions {
validators?: ValidatorFn | ValidatorFn[] | null;
}
/** @stable */
export declare class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {
readonly asyncValidator: AsyncValidatorFn | null;
readonly control: FormGroup;
@@ -110,12 +107,10 @@ export interface AsyncValidator extends Validator {
validate(c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
}
/** @stable */
export interface AsyncValidatorFn {
(c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
}
/** @stable */
export declare class CheckboxControlValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void;
onTouched: () => void;
@@ -134,14 +129,12 @@ export declare class CheckboxRequiredValidator extends RequiredValidator {
/** @experimental */
export declare const COMPOSITION_BUFFER_MODE: InjectionToken<boolean>;
/** @stable */
export declare abstract class ControlContainer extends AbstractControlDirective {
readonly formDirective: Form | null;
name: string;
readonly path: string[] | null;
}
/** @stable */
export interface ControlValueAccessor {
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
@@ -149,7 +142,6 @@ export interface ControlValueAccessor {
writeValue(obj: any): void;
}
/** @stable */
export declare class DefaultValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void;
onTouched: () => void;
@@ -167,7 +159,6 @@ export declare class EmailValidator implements Validator {
validate(c: AbstractControl): ValidationErrors | null;
}
/** @stable */
export interface Form {
addControl(dir: NgControl): void;
addFormGroup(dir: AbstractFormGroupDirective): void;
@@ -178,7 +169,6 @@ export interface Form {
updateModel(dir: NgControl, value: any): void;
}
/** @stable */
export declare class FormArray extends AbstractControl {
controls: AbstractControl[];
readonly length: number;
@@ -203,7 +193,6 @@ export declare class FormArray extends AbstractControl {
}): void;
}
/** @stable */
export declare class FormArrayName extends ControlContainer implements OnInit, OnDestroy {
readonly asyncValidator: AsyncValidatorFn | null;
readonly control: FormArray;
@@ -216,7 +205,6 @@ export declare class FormArrayName extends ControlContainer implements OnInit, O
ngOnInit(): void;
}
/** @stable */
export declare class FormBuilder {
array(controlsConfig: any[], validator?: ValidatorFn | ValidatorFn[] | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null): FormArray;
control(formState: any, validator?: ValidatorFn | ValidatorFn[] | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null): FormControl;
@@ -227,7 +215,6 @@ export declare class FormBuilder {
} | null): FormGroup;
}
/** @stable */
export declare class FormControl extends AbstractControl {
constructor(formState?: any, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
patchValue(value: any, options?: {
@@ -250,7 +237,6 @@ export declare class FormControl extends AbstractControl {
}): void;
}
/** @stable */
export declare class FormControlDirective extends NgControl implements OnChanges {
readonly asyncValidator: AsyncValidatorFn | null;
readonly control: FormControl;
@@ -266,7 +252,6 @@ export declare class FormControlDirective extends NgControl implements OnChanges
viewToModelUpdate(newValue: any): void;
}
/** @stable */
export declare class FormControlName extends NgControl implements OnChanges, OnDestroy {
readonly asyncValidator: AsyncValidatorFn;
readonly control: FormControl;
@@ -283,7 +268,6 @@ export declare class FormControlName extends NgControl implements OnChanges, OnD
viewToModelUpdate(newValue: any): void;
}
/** @stable */
export declare class FormGroup extends AbstractControl {
controls: {
[key: string]: AbstractControl;
@@ -315,7 +299,6 @@ export declare class FormGroup extends AbstractControl {
}): void;
}
/** @stable */
export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges {
readonly control: FormGroup;
directives: FormControlName[];
@@ -341,17 +324,14 @@ export declare class FormGroupDirective extends ControlContainer implements Form
updateModel(dir: FormControlName, value: any): void;
}
/** @stable */
export declare class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy {
name: string;
constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
}
/** @stable */
export declare class FormsModule {
}
/** @stable */
export declare class MaxLengthValidator implements Validator, OnChanges {
maxlength: string;
ngOnChanges(changes: SimpleChanges): void;
@@ -359,7 +339,6 @@ export declare class MaxLengthValidator implements Validator, OnChanges {
validate(c: AbstractControl): ValidationErrors | null;
}
/** @stable */
export declare class MinLengthValidator implements Validator, OnChanges {
minlength: string;
ngOnChanges(changes: SimpleChanges): void;
@@ -367,16 +346,12 @@ export declare class MinLengthValidator implements Validator, OnChanges {
validate(c: AbstractControl): ValidationErrors | null;
}
/** @stable */
export declare const NG_ASYNC_VALIDATORS: InjectionToken<(Function | Validator)[]>;
/** @stable */
export declare const NG_VALIDATORS: InjectionToken<(Function | Validator)[]>;
/** @stable */
export declare const NG_VALUE_ACCESSOR: InjectionToken<ControlValueAccessor>;
/** @stable */
export declare abstract class NgControl extends AbstractControlDirective {
readonly asyncValidator: AsyncValidatorFn | null;
name: string | null;
@@ -385,17 +360,14 @@ export declare abstract class NgControl extends AbstractControlDirective {
abstract viewToModelUpdate(newValue: any): void;
}
/** @stable */
export declare class NgControlStatus extends AbstractControlStatus {
constructor(cd: NgControl);
}
/** @stable */
export declare class NgControlStatusGroup extends AbstractControlStatus {
constructor(cd: ControlContainer);
}
/** @stable */
export declare class NgForm extends ControlContainer implements Form, AfterViewInit {
readonly control: FormGroup;
readonly controls: {
@@ -426,7 +398,6 @@ export declare class NgForm extends ControlContainer implements Form, AfterViewI
updateModel(dir: NgControl, value: any): void;
}
/** @stable */
export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
readonly asyncValidator: AsyncValidatorFn | null;
readonly control: FormControl;
@@ -449,13 +420,11 @@ export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
viewToModelUpdate(newValue: any): void;
}
/** @stable */
export declare class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy {
name: string;
constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
}
/** @stable */
export declare class NgSelectOption implements OnDestroy {
id: string;
ngValue: any;
@@ -464,7 +433,6 @@ export declare class NgSelectOption implements OnDestroy {
ngOnDestroy(): void;
}
/** @stable */
export declare class PatternValidator implements Validator, OnChanges {
pattern: string | RegExp;
ngOnChanges(changes: SimpleChanges): void;
@@ -472,7 +440,6 @@ export declare class PatternValidator implements Validator, OnChanges {
validate(c: AbstractControl): ValidationErrors | null;
}
/** @stable */
export declare class RadioControlValueAccessor implements ControlValueAccessor, OnDestroy, OnInit {
formControlName: string;
name: string;
@@ -489,20 +456,17 @@ export declare class RadioControlValueAccessor implements ControlValueAccessor,
writeValue(value: any): void;
}
/** @stable */
export declare class ReactiveFormsModule {
static withConfig(opts: { warnOnNgModelWithFormControl: 'never' | 'once' | 'always';
}): ModuleWithProviders;
}
/** @stable */
export declare class RequiredValidator implements Validator {
required: boolean | string;
registerOnValidatorChange(fn: () => void): void;
validate(c: AbstractControl): ValidationErrors | null;
}
/** @stable */
export declare class SelectControlValueAccessor implements ControlValueAccessor {
compareWith: (o1: any, o2: any) => boolean;
onChange: (_: any) => void;
@@ -515,7 +479,6 @@ export declare class SelectControlValueAccessor implements ControlValueAccessor
writeValue(value: any): void;
}
/** @stable */
export declare class SelectMultipleControlValueAccessor implements ControlValueAccessor {
compareWith: (o1: any, o2: any) => boolean;
onChange: (_: any) => void;
@@ -533,18 +496,15 @@ export declare type ValidationErrors = {
[key: string]: any;
};
/** @stable */
export interface Validator {
registerOnValidatorChange?(fn: () => void): void;
validate(c: AbstractControl): ValidationErrors | null;
}
/** @stable */
export interface ValidatorFn {
(c: AbstractControl): ValidationErrors | null;
}
/** @stable */
export declare class Validators {
static compose(validators: (ValidatorFn | null | undefined)[]): ValidatorFn | null;
static compose(validators: null): null;
@@ -560,5 +520,4 @@ export declare class Validators {
static requiredTrue(control: AbstractControl): ValidationErrors | null;
}
/** @stable */
export declare const VERSION: Version;
@@ -3,11 +3,9 @@ export declare class JitCompilerFactory implements CompilerFactory {
createCompiler(options?: CompilerOptions[]): Compiler;
}
/** @stable */
export declare const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
/** @experimental */
export declare const RESOURCE_CACHE_PROVIDER: Provider[];
/** @stable */
export declare const VERSION: Version;
@@ -1,6 +1,4 @@
/** @stable */
export declare class BrowserDynamicTestingModule {
}
/** @stable */
export declare const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
@@ -1,4 +1,3 @@
/** @stable */
export declare class BrowserModule {
constructor(parentModule: BrowserModule);
/** @experimental */ static withServerTransition(params: {
@@ -23,7 +22,6 @@ export declare function disableDebugTools(): void;
/** @deprecated */
export declare const DOCUMENT: InjectionToken<Document>;
/** @stable */
export declare abstract class DomSanitizer implements Sanitizer {
abstract bypassSecurityTrustHtml(value: string): SafeHtml;
abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
@@ -36,10 +34,8 @@ export declare abstract class DomSanitizer implements Sanitizer {
/** @experimental */
export declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
/** @stable */
export declare const EVENT_MANAGER_PLUGINS: InjectionToken<EventManagerPlugin[]>;
/** @stable */
export declare class EventManager {
constructor(plugins: EventManagerPlugin[], _zone: NgZone);
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
@@ -99,30 +95,23 @@ export declare type MetaDefinition = {
[prop: string]: string;
};
/** @stable */
export declare const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef;
/** @stable */
export interface SafeHtml extends SafeValue {
}
/** @stable */
export interface SafeResourceUrl extends SafeValue {
}
/** @stable */
export interface SafeScript extends SafeValue {
}
/** @stable */
export interface SafeStyle extends SafeValue {
}
/** @stable */
export interface SafeUrl extends SafeValue {
}
/** @stable */
export interface SafeValue {
}
@@ -148,5 +137,4 @@ export declare class TransferState {
toJson(): string;
}
/** @stable */
export declare const VERSION: Version;
-2
View File
@@ -1,6 +1,4 @@
/** @stable */
export declare class BrowserTestingModule {
}
/** @stable */
export declare const platformBrowserTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
@@ -45,5 +45,4 @@ export declare class ServerModule {
export declare class ServerTransferStateModule {
}
/** @stable */
export declare const VERSION: Version;
@@ -1,5 +1,4 @@
/** @experimental */
export declare const platformWorkerAppDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
/** @stable */
export declare const VERSION: Version;
@@ -78,7 +78,6 @@ export declare class UiArguments {
constructor(method: string, args?: FnArg[] | undefined);
}
/** @stable */
export declare const VERSION: Version;
/** @experimental */
-44
View File
@@ -1,4 +1,3 @@
/** @stable */
export declare class ActivatedRoute {
readonly children: ActivatedRoute[];
component: Type<any> | string | null;
@@ -19,7 +18,6 @@ export declare class ActivatedRoute {
toString(): string;
}
/** @stable */
export declare class ActivatedRouteSnapshot {
readonly children: ActivatedRouteSnapshot[];
component: Type<any> | string | null;
@@ -55,22 +53,18 @@ export declare class ActivationStart {
toString(): string;
}
/** @stable */
export interface CanActivate {
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
}
/** @stable */
export interface CanActivateChild {
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
}
/** @stable */
export interface CanDeactivate<T> {
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
}
/** @stable */
export interface CanLoad {
canLoad(route: Route): Observable<boolean> | Promise<boolean> | boolean;
}
@@ -91,7 +85,6 @@ export declare class ChildActivationStart {
toString(): string;
}
/** @stable */
export declare class ChildrenOutletContexts {
getContext(childName: string): OutletContext | null;
getOrCreateContext(childName: string): OutletContext;
@@ -101,15 +94,12 @@ export declare class ChildrenOutletContexts {
onOutletReAttached(contexts: Map<string, OutletContext>): void;
}
/** @stable */
export declare function convertToParamMap(params: Params): ParamMap;
/** @stable */
export declare type Data = {
[name: string]: any;
};
/** @stable */
export declare class DefaultUrlSerializer implements UrlSerializer {
parse(url: string): UrlTree;
serialize(tree: UrlTree): string;
@@ -118,10 +108,8 @@ export declare class DefaultUrlSerializer implements UrlSerializer {
/** @experimental */
export declare type DetachedRouteHandle = {};
/** @stable */
export declare type Event = RouterEvent | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd;
/** @stable */
export interface ExtraOptions {
enableTracing?: boolean;
errorHandler?: ErrorHandler;
@@ -158,13 +146,10 @@ export declare class GuardsCheckStart extends RouterEvent {
toString(): string;
}
/** @stable */
export declare type LoadChildren = string | LoadChildrenCallback;
/** @stable */
export declare type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Promise<Type<any>> | Observable<Type<any>>;
/** @stable */
export declare class NavigationCancel extends RouterEvent {
reason: string;
constructor(
@@ -174,7 +159,6 @@ export declare class NavigationCancel extends RouterEvent {
toString(): string;
}
/** @stable */
export declare class NavigationEnd extends RouterEvent {
urlAfterRedirects: string;
constructor(
@@ -184,7 +168,6 @@ export declare class NavigationEnd extends RouterEvent {
toString(): string;
}
/** @stable */
export declare class NavigationError extends RouterEvent {
error: any;
constructor(
@@ -194,7 +177,6 @@ export declare class NavigationError extends RouterEvent {
toString(): string;
}
/** @stable */
export interface NavigationExtras {
fragment?: string;
preserveFragment?: boolean;
@@ -206,7 +188,6 @@ export interface NavigationExtras {
skipLocationChange?: boolean;
}
/** @stable */
export declare class NavigationStart extends RouterEvent {
navigationTrigger?: 'imperative' | 'popstate' | 'hashchange';
restoredState?: {
@@ -227,7 +208,6 @@ export declare class NoPreloading implements PreloadingStrategy {
preload(route: Route, fn: () => Observable<any>): Observable<any>;
}
/** @stable */
export declare class OutletContext {
attachRef: ComponentRef<any> | null;
children: ChildrenOutletContexts;
@@ -236,7 +216,6 @@ export declare class OutletContext {
route: ActivatedRoute | null;
}
/** @stable */
export interface ParamMap {
readonly keys: string[];
get(name: string): string | null;
@@ -244,7 +223,6 @@ export interface ParamMap {
has(name: string): boolean;
}
/** @stable */
export declare type Params = {
[key: string]: any;
};
@@ -259,18 +237,14 @@ export declare abstract class PreloadingStrategy {
abstract preload(route: Route, fn: () => Observable<any>): Observable<any>;
}
/** @stable */
export declare const PRIMARY_OUTLET = "primary";
/** @stable */
export declare function provideRoutes(routes: Routes): any;
/** @stable */
export interface Resolve<T> {
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<T> | Promise<T> | T;
}
/** @stable */
export declare type ResolveData = {
[name: string]: any;
};
@@ -299,7 +273,6 @@ export declare class ResolveStart extends RouterEvent {
toString(): string;
}
/** @stable */
export interface Route {
canActivate?: any[];
canActivateChild?: any[];
@@ -334,7 +307,6 @@ export declare class RouteConfigLoadStart {
toString(): string;
}
/** @stable */
export declare class Router {
config: Routes;
errorHandler: ErrorHandler;
@@ -360,7 +332,6 @@ export declare class Router {
setUpLocationChangeListener(): void;
}
/** @stable */
export declare const ROUTER_CONFIGURATION: InjectionToken<ExtraOptions>;
/** @experimental */
@@ -384,7 +355,6 @@ export declare class RouterEvent {
url: string);
}
/** @stable */
export declare class RouterLink {
fragment: string;
preserveFragment: boolean;
@@ -401,7 +371,6 @@ export declare class RouterLink {
onClick(): boolean;
}
/** @stable */
export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
readonly isActive: boolean;
links: QueryList<RouterLink>;
@@ -416,7 +385,6 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
ngOnDestroy(): void;
}
/** @stable */
export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
fragment: string;
href: string;
@@ -437,14 +405,12 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
onClick(button: number, ctrlKey: boolean, metaKey: boolean, shiftKey: boolean): boolean;
}
/** @stable */
export declare class RouterModule {
constructor(guard: any, router: Router);
static forChild(routes: Routes): ModuleWithProviders;
static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders;
}
/** @stable */
export declare class RouterOutlet implements OnDestroy, OnInit {
activateEvents: EventEmitter<any>;
readonly activatedRoute: ActivatedRoute;
@@ -463,7 +429,6 @@ export declare class RouterOutlet implements OnDestroy, OnInit {
ngOnInit(): void;
}
/** @stable */
export declare class RouterPreloader implements OnDestroy {
constructor(router: Router, moduleLoader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, preloadingStrategy: PreloadingStrategy);
ngOnDestroy(): void;
@@ -471,25 +436,21 @@ export declare class RouterPreloader implements OnDestroy {
setUpPreloading(): void;
}
/** @stable */
export declare class RouterState extends Tree<ActivatedRoute> {
snapshot: RouterStateSnapshot;
toString(): string;
}
/** @stable */
export declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
url: string;
toString(): string;
}
/** @stable */
export declare type Routes = Route[];
/** @experimental */
export declare const ROUTES: InjectionToken<Route[][]>;
/** @stable */
export declare class RoutesRecognized extends RouterEvent {
state: RouterStateSnapshot;
urlAfterRedirects: string;
@@ -522,7 +483,6 @@ export declare type UrlMatchResult = {
};
};
/** @stable */
export declare class UrlSegment {
readonly parameterMap: ParamMap;
parameters: {
@@ -537,7 +497,6 @@ export declare class UrlSegment {
toString(): string;
}
/** @stable */
export declare class UrlSegmentGroup {
children: {
[key: string]: UrlSegmentGroup;
@@ -554,13 +513,11 @@ export declare class UrlSegmentGroup {
toString(): string;
}
/** @stable */
export declare abstract class UrlSerializer {
abstract parse(url: string): UrlTree;
abstract serialize(tree: UrlTree): string;
}
/** @stable */
export declare class UrlTree {
fragment: string | null;
readonly queryParamMap: ParamMap;
@@ -571,5 +528,4 @@ export declare class UrlTree {
toString(): string;
}
/** @stable */
export declare const VERSION: Version;
-3
View File
@@ -1,13 +1,10 @@
/** @stable */
export declare class RouterTestingModule {
static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders;
}
/** @stable */
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router;
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], urlHandlingStrategy?: UrlHandlingStrategy): Router;
/** @stable */
export declare class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {
stubbedModules: {
[path: string]: any;
-3
View File
@@ -13,13 +13,11 @@ export declare function downgradeInjectable(token: any): Function;
/** @experimental */
export declare function downgradeModule<T>(moduleFactoryOrBootstrapFn: NgModuleFactory<T> | ((extraProviders: StaticProvider[]) => Promise<NgModuleRef<T>>)): string;
/** @stable */
export declare function getAngularJSGlobal(): any;
/** @deprecated */
export declare function getAngularLib(): any;
/** @stable */
export declare function setAngularJSGlobal(ng: any): void;
/** @deprecated */
@@ -45,5 +43,4 @@ export declare class UpgradeModule {
bootstrap(element: Element, modules?: string[], config?: any): void;
}
/** @stable */
export declare const VERSION: Version;
-1
View File
@@ -21,5 +21,4 @@ export declare class UpgradeAdapterRef {
ready(fn: (upgradeAdapterRef: UpgradeAdapterRef) => void): void;
}
/** @stable */
export declare const VERSION: Version;