Skip to content

Commit dc60f86

Browse files
committed
disable typescript for unknowns comparison
1 parent adde308 commit dc60f86

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/utils/src/dataframe.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,13 @@ export function sortableDataFrame(data: DataFrame): DataFrame {
122122
}
123123
const sorted = all.then(all => {
124124
return all.sort((a, b) => {
125-
if (a[orderBy] < b[orderBy]) return -1
126-
if (a[orderBy] > b[orderBy]) return 1
125+
/// TODO(SL): rewrite the function, handling every case
126+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
127+
const valueA: any = a[orderBy]
128+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
129+
const valueB: any = b[orderBy]
130+
if (valueA < valueB) return -1
131+
if (valueA > valueB) return 1
127132
return 0
128133
}).slice(start, end)
129134
})

0 commit comments

Comments
 (0)