mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build(docs-infra): make type-checking stricter by enabling noImplicitAny (#29926)
PR Close #29926
This commit is contained in:
committed by
Andrew Kushnir
parent
2002db28ff
commit
eb85c8a742
@@ -1,5 +1,5 @@
|
||||
/* tslint:disable component-selector */
|
||||
import { Component, AfterViewInit, ViewChild, Input, ViewChildren, QueryList, OnInit } from '@angular/core';
|
||||
import { AfterViewInit, Component, ElementRef, Input, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
||||
import { CodeComponent } from './code.component';
|
||||
|
||||
export interface TabInfo {
|
||||
@@ -48,7 +48,7 @@ export class CodeTabsComponent implements OnInit, AfterViewInit {
|
||||
|
||||
@Input() linenums: string;
|
||||
|
||||
@ViewChild('content', { static: true }) content;
|
||||
@ViewChild('content', { static: true }) content: ElementRef;
|
||||
|
||||
@ViewChildren(CodeComponent) codeComponents: QueryList<CodeComponent>;
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@ class FakeComponentFactory extends ComponentFactory<any> {
|
||||
}
|
||||
|
||||
class FakeComponentFactoryResolver extends ComponentFactoryResolver {
|
||||
constructor(private modulePath) { super(); }
|
||||
constructor(private modulePath: string) { super(); }
|
||||
|
||||
resolveComponentFactory(component: Type<any>): ComponentFactory<any> {
|
||||
return new FakeComponentFactory(this.modulePath);
|
||||
@@ -261,7 +261,7 @@ class FakeModuleRef extends NgModuleRef<WithCustomElementComponent> {
|
||||
componentFactoryResolver = new FakeComponentFactoryResolver(this.modulePath);
|
||||
instance: WithCustomElementComponent = new FakeCustomElementModule();
|
||||
|
||||
constructor(private modulePath) {
|
||||
constructor(private modulePath: string) {
|
||||
super();
|
||||
|
||||
this.injector.get.and.returnValue(this.componentFactoryResolver);
|
||||
@@ -275,7 +275,7 @@ class FakeModuleFactory extends NgModuleFactory<any> {
|
||||
moduleType: Type<any>;
|
||||
moduleRefToCreate = new FakeModuleRef(this.modulePath);
|
||||
|
||||
constructor(private modulePath) { super(); }
|
||||
constructor(private modulePath: string) { super(); }
|
||||
|
||||
create(parentInjector: Injector | null): NgModuleRef<any> {
|
||||
return this.moduleRefToCreate;
|
||||
|
||||
Reference in New Issue
Block a user