Skip to content

Commit

Permalink
Fixing sortRow type
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelory committed Nov 14, 2024
1 parent ad23c63 commit acc473c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react/src/components/DataTable/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,14 @@ export interface DataTableProps<RowType, ColTypes extends any[]>
rows: Array<Omit<DataTableRow<ColTypes>, 'cells'>>;
size?: DataTableSize;
sortRow?: (
cellA: DataTableCell<any>,
cellB: DataTableCell<any>,
cellA: any,
cellB: any,
sortRowOptions: {
sortDirection: DataTableSortState;
sortStates: Record<DataTableSortState, DataTableSortState>;
locale: string;
key: string;
compare: (a: number | string, b: number | string, locale?: string) => number;
}
) => number;
stickyHeader?: boolean;
Expand Down

0 comments on commit acc473c

Please sign in to comment.