Skip to content

Commit e529a1c

Browse files
committed
fix: UTable: simplify types in data-table by removing redundant RowKeys and adjusting key-value mappings
1 parent f0dbb18 commit e529a1c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ui.data-table/types.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import type { Config as UDividerConfig } from "../ui.container-divider/types";
66

77
export type Config = typeof defaultConfig;
88

9-
type RowKeys = number | string | boolean | undefined | Date | Row | Row[] | ((row: Row) => string);
10-
119
export interface CellObject {
1210
contentClass?: string | ((value: unknown | string, row: Row) => string);
1311
class?: string | ((value: unknown | string, row: Row) => string);
14-
[key: string]: unknown | string;
12+
[key: string]: unknown;
1513
}
1614

1715
export type RowId = string | number;
@@ -32,7 +30,7 @@ export interface Row {
3230
rowDate?: string | Date;
3331
row?: Row | Row[];
3432
class?: string | ((row: Row) => string);
35-
[key: string]: Cell | RowKeys;
33+
[key: string]: unknown;
3634
}
3735

3836
export interface FlatRow extends Row {

0 commit comments

Comments
 (0)