fix(closure): suppress some closure compiler warnings (#14198)
PR Close #14198
This commit is contained in:
parent
104c157ef6
commit
22058298d3
|
@ -243,6 +243,10 @@ function _callAndReportToErrorHandler(errorHandler: ErrorHandler, callback: () =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* workaround https://github.com/angular/tsickle/issues/350
|
||||||
|
* @suppress {checkTypes}
|
||||||
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class PlatformRef_ extends PlatformRef {
|
export class PlatformRef_ extends PlatformRef {
|
||||||
private _modules: NgModuleRef<any>[] = [];
|
private _modules: NgModuleRef<any>[] = [];
|
||||||
|
@ -404,6 +408,10 @@ export abstract class ApplicationRef {
|
||||||
abstract get viewCount(): number;
|
abstract get viewCount(): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* workaround https://github.com/angular/tsickle/issues/350
|
||||||
|
* @suppress {checkTypes}
|
||||||
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ApplicationRef_ extends ApplicationRef {
|
export class ApplicationRef_ extends ApplicationRef {
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|
|
@ -57,6 +57,7 @@ export abstract class Injector {
|
||||||
abstract get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T): T;
|
abstract get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T): T;
|
||||||
/**
|
/**
|
||||||
* @deprecated from v4.0.0 use Type<T> or InjectToken<T>
|
* @deprecated from v4.0.0 use Type<T> or InjectToken<T>
|
||||||
|
* @suppress {duplicate}
|
||||||
*/
|
*/
|
||||||
abstract get(token: any, notFoundValue?: any): any;
|
abstract get(token: any, notFoundValue?: any): any;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,10 @@ export abstract class ComponentRef<C> {
|
||||||
abstract onDestroy(callback: Function): void;
|
abstract onDestroy(callback: Function): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* workaround https://github.com/angular/tsickle/issues/350
|
||||||
|
* @suppress {checkTypes}
|
||||||
|
*/
|
||||||
export class ComponentRef_<C> extends ComponentRef<C> {
|
export class ComponentRef_<C> extends ComponentRef<C> {
|
||||||
constructor(
|
constructor(
|
||||||
private _index: number, private _parentView: AppView<any>, private _nativeElement: any,
|
private _index: number, private _parentView: AppView<any>, private _nativeElement: any,
|
||||||
|
|
|
@ -42,6 +42,10 @@ export abstract class TemplateRef<C> {
|
||||||
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* workaround https://github.com/angular/tsickle/issues/350
|
||||||
|
* @suppress {checkTypes}
|
||||||
|
*/
|
||||||
export class TemplateRef_<C> extends TemplateRef<C> {
|
export class TemplateRef_<C> extends TemplateRef<C> {
|
||||||
constructor(
|
constructor(
|
||||||
private _parentView: AppView<any>, private _nodeIndex: number, private _nativeElement: any) {
|
private _parentView: AppView<any>, private _nodeIndex: number, private _nativeElement: any) {
|
||||||
|
|
Loading…
Reference in New Issue