diff --git a/src/list.ts b/src/list.ts index caadb08..f1fd723 100644 --- a/src/list.ts +++ b/src/list.ts @@ -233,12 +233,12 @@ class List { * Correlates the elements of two sequences based on equality of keys and groups the results. * The default equality comparer is used to compare keys. */ - public GroupJoin( + public GroupJoin( list: List, key1: (k: T) => any, key2: (k: U) => any, - result: (first: T, second: List) => any - ): List { + result: (first: T, second: List) => R + ): List { return this.Select(x => result( x, @@ -275,12 +275,12 @@ class List { /** * Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys. */ - public Join( + public Join( list: List, key1: (key: T) => any, key2: (key: U) => any, - result: (first: T, second: U) => any - ): List { + result: (first: T, second: U) => R + ): List { return this.SelectMany(x => list.Where(y => key2(y) === key1(x)).Select(z => result(x, z)) )