TypeScript: Fix type error
TypeScript: Fix `resultSelector` type definition on join() and groupJoin()