Skip to content

Commit

Permalink
disable typescript for unknowns comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
severo committed Nov 18, 2024
1 parent adde308 commit dc60f86
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/utils/src/dataframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,13 @@ export function sortableDataFrame(data: DataFrame): DataFrame {
}
const sorted = all.then(all => {
return all.sort((a, b) => {
if (a[orderBy] < b[orderBy]) return -1
if (a[orderBy] > b[orderBy]) return 1
/// TODO(SL): rewrite the function, handling every case
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const valueA: any = a[orderBy]
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const valueB: any = b[orderBy]
if (valueA < valueB) return -1
if (valueA > valueB) return 1
return 0
}).slice(start, end)
})
Expand Down

0 comments on commit dc60f86

Please sign in to comment.