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
@@ -89,8 +89,8 @@ export class ReflectionCapabilities implements PlatformReflectionCapabilities {
}
/** @internal */
_zipTypesAndAnnotations(paramTypes, paramAnnotations): any[][] {
var result;
_zipTypesAndAnnotations(paramTypes: any /** TODO #9100 */, paramAnnotations: any /** TODO #9100 */): any[][] {
var result: any /** TODO #9100 */;
if (typeof paramTypes === 'undefined') {
result = new Array(paramAnnotations.length);
@@ -125,9 +125,9 @@ export class ReflectionCapabilities implements PlatformReflectionCapabilities {
// API of tsickle for lowering decorators to properties on the class.
if (isPresent((<any>typeOrFunc).ctorParameters)) {
let ctorParameters = (<any>typeOrFunc).ctorParameters;
let paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);
let paramTypes = ctorParameters.map((ctorParam: any /** TODO #9100 */) => ctorParam && ctorParam.type);
let paramAnnotations = ctorParameters.map(
ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
(ctorParam: any /** TODO #9100 */) => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
}