Loosen empty table row header key

This commit is contained in:
Eric Liu 2024-05-04 13:38:14 -07:00
commit df1d40257d
4 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@ export type DataTableKey<Row = DataTableRow> =
export type DataTableValue = any;
export interface DataTableEmptyHeader<Row = DataTableRow> {
key: DataTableKey<Row>;
key: DataTableKey<Row> | string;
empty: boolean;
display?: (item: Value, row: Row) => DataTableValue;
sort?: false | ((a: DataTableValue, b: DataTableValue) => number);