diff --git a/modules/angular2/src/core/facade/collection.ts b/modules/angular2/src/core/facade/collection.ts index c59d1355f0..8d6d527c34 100644 --- a/modules/angular2/src/core/facade/collection.ts +++ b/modules/angular2/src/core/facade/collection.ts @@ -177,7 +177,7 @@ export class ListWrapper { static createFixedSize(size: number): any[] { return new Array(size); } static createGrowableSize(size: number): any[] { return new Array(size); } static clone(array: T[]): T[] { return array.slice(0); } - static forEachWithIndex(array: T[], fn: (T, number) => void) { + static forEachWithIndex(array: T[], fn: (t: T, n: number) => void) { for (var i = 0; i < array.length; i++) { fn(array[i], i); }