refactor(TypeScript): Add noImplicitAny

We automatically insert explicit 'any's where needed. These need to be
addressed as in #9100.

Fixes #4924
This commit is contained in:
ScottSWu
2016-06-08 15:45:15 -07:00
parent 87d824e1b4
commit 86fbd50c3d
305 changed files with 2338 additions and 2337 deletions

View File

@ -75,10 +75,10 @@ export class ComponentFixture<T> {
private _isStable: boolean = true;
private _completer: PromiseCompleter<any> = null;
private _onUnstableSubscription = null;
private _onStableSubscription = null;
private _onMicrotaskEmptySubscription = null;
private _onErrorSubscription = null;
private _onUnstableSubscription: any /** TODO #9100 */ = null;
private _onStableSubscription: any /** TODO #9100 */ = null;
private _onMicrotaskEmptySubscription: any /** TODO #9100 */ = null;
private _onErrorSubscription: any /** TODO #9100 */ = null;
constructor(componentRef: ComponentRef<T>, ngZone: NgZone, autoDetect: boolean) {
this.changeDetectorRef = componentRef.changeDetectorRef;
@ -368,8 +368,8 @@ export class TestComponentBuilder {
}
createFakeAsync(rootComponentType: Type): ComponentFixture<any> {
let result;
let error;
let result: any /** TODO #9100 */;
let error: any /** TODO #9100 */;
PromiseWrapper.then(this.createAsync(rootComponentType), (_result) => { result = _result; },
(_error) => { error = _error; });
tick();

View File

@ -71,7 +71,7 @@ export class MockViewResolver extends ViewResolver {
view = super.resolve(component);
}
var directives = [];
var directives: any[] /** TODO #9100 */ = [];
if (isPresent(view.directives)) {
flattenArray(view.directives, directives);
}

View File

@ -61,7 +61,7 @@ export class MockXHR extends XHR {
verifyNoOutstandingExpectations() {
if (this._expectations.length === 0) return;
var urls = [];
var urls: any[] /** TODO #9100 */ = [];
for (var i = 0; i < this._expectations.length; i++) {
var expectation = this._expectations[i];
urls.push(expectation.url);
@ -96,7 +96,7 @@ class _PendingRequest {
url: string;
completer: PromiseCompleter<string>;
constructor(url) {
constructor(url: any /** TODO #9100 */) {
this.url = url;
this.completer = PromiseWrapper.completer();
}