Merge pull request #1248 from johnnyreilly/master

Knockout: Made arrayIndexOf generic
This commit is contained in:
Diullei Gomes
2013-11-11 11:06:03 -08:00
+1 -1
View File
@@ -245,7 +245,7 @@ interface KnockoutUtils {
arrayForEach<T>(array: T[], action: (item: T) => void): void;
arrayIndexOf(array: any[], item: any): number;
arrayIndexOf<T>(array: T[], item: T): number;
arrayFirst<T>(array: T[], predicate: (item: T) => boolean, predicateOwner?: any): T;