We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f921fdb commit d207818Copy full SHA for d207818
src/Table.tsx
@@ -92,7 +92,7 @@ export interface TableProps<RecordType = unknown>
92
children?: React.ReactNode;
93
data?: readonly RecordType[];
94
columns?: ColumnsType<RecordType>;
95
- rowKey?: string | GetRowKey<RecordType>;
+ rowKey?: (string & {}) | keyof RecordType | GetRowKey<RecordType>;
96
tableLayout?: TableLayout;
97
98
// Fixed Columns
@@ -107,7 +107,7 @@ export interface TableProps<RecordType = unknown>
107
// Additional Part
108
footer?: PanelRender<RecordType>;
109
summary?: (data: readonly RecordType[]) => React.ReactNode;
110
- caption?: string | React.ReactNode;
+ caption?: React.ReactNode;
111
112
// Customize
113
id?: string;
0 commit comments