Skip to content

Commit 597f79e

Browse files
committed
fix(typings): missing types in ListWrapper typings
1 parent 31f48ae commit 597f79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/core/facade/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class ListWrapper {
177177
static createFixedSize(size: number): any[] { return new Array(size); }
178178
static createGrowableSize(size: number): any[] { return new Array(size); }
179179
static clone<T>(array: T[]): T[] { return array.slice(0); }
180-
static forEachWithIndex<T>(array: T[], fn: (T, number) => void) {
180+
static forEachWithIndex<T>(array: T[], fn: (t: T, n: number) => void) {
181181
for (var i = 0; i < array.length; i++) {
182182
fn(array[i], i);
183183
}

0 commit comments

Comments
 (0)