Skip to content

Commit a15ceda

Browse files
committed
fix types for ramda composes
Just ts-ignore, because it's impossible
1 parent 5845193 commit a15ceda

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/cubejs-schema-compiler/src/compiler/JoinGraph.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,11 @@ export class JoinGraph implements CompilerInterface {
7575

7676
// This requires @types/[email protected] or newer
7777
// @ts-ignore
78-
this.nodes = R.compose<
79-
Record<string, JoinEdge>,
80-
Array<[string, JoinEdge]>,
81-
Array<JoinEdge>,
82-
Record<string, Array<JoinEdge> | undefined>,
83-
Record<string, Record<string, 1>>
84-
>(
78+
this.nodes = R.compose(
8579
// This requires @types/[email protected] or newer
8680
// @ts-ignore
8781
R.map(groupedByFrom => R.fromPairs(groupedByFrom.map(join => [join.originalTo, 1]))),
82+
// @ts-ignore
8883
R.groupBy((join: JoinEdge) => join.originalFrom),
8984
R.map(v => v[1]),
9085
R.toPairs

0 commit comments

Comments
 (0)