diff --git a/src/Table.tsx b/src/Table.tsx index 2be5e02a3..9681ee305 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -92,7 +92,7 @@ export interface TableProps children?: React.ReactNode; data?: readonly RecordType[]; columns?: ColumnsType; - rowKey?: string | GetRowKey; + rowKey?: (string & {}) | keyof RecordType | GetRowKey; tableLayout?: TableLayout; // Fixed Columns @@ -107,7 +107,7 @@ export interface TableProps // Additional Part footer?: PanelRender; summary?: (data: readonly RecordType[]) => React.ReactNode; - caption?: string | React.ReactNode; + caption?: React.ReactNode; // Customize id?: string;