fix(closure): suppress some closure compiler warnings (#14198)

PR Close #14198
This commit is contained in:
Alex Eagle 2017-01-30 16:25:15 -08:00 committed by Miško Hevery
parent 104c157ef6
commit 22058298d3
4 changed files with 17 additions and 0 deletions

View File

@ -243,6 +243,10 @@ function _callAndReportToErrorHandler(errorHandler: ErrorHandler, callback: () =
}
}
/**
* workaround https://github.com/angular/tsickle/issues/350
* @suppress {checkTypes}
*/
@Injectable()
export class PlatformRef_ extends PlatformRef {
private _modules: NgModuleRef<any>[] = [];
@ -404,6 +408,10 @@ export abstract class ApplicationRef {
abstract get viewCount(): number;
}
/**
* workaround https://github.com/angular/tsickle/issues/350
* @suppress {checkTypes}
*/
@Injectable()
export class ApplicationRef_ extends ApplicationRef {
/** @internal */

View File

@ -57,6 +57,7 @@ export abstract class Injector {
abstract get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T): T;
/**
* @deprecated from v4.0.0 use Type<T> or InjectToken<T>
* @suppress {duplicate}
*/
abstract get(token: any, notFoundValue?: any): any;
}

View File

@ -67,6 +67,10 @@ export abstract class ComponentRef<C> {
abstract onDestroy(callback: Function): void;
}
/**
* workaround https://github.com/angular/tsickle/issues/350
* @suppress {checkTypes}
*/
export class ComponentRef_<C> extends ComponentRef<C> {
constructor(
private _index: number, private _parentView: AppView<any>, private _nativeElement: any,

View File

@ -42,6 +42,10 @@ export abstract class TemplateRef<C> {
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
}
/**
* workaround https://github.com/angular/tsickle/issues/350
* @suppress {checkTypes}
*/
export class TemplateRef_<C> extends TemplateRef<C> {
constructor(
private _parentView: AppView<any>, private _nodeIndex: number, private _nativeElement: any) {