Skip to content

Commit 3208710

Browse files
authored
feat: rowKey can be symbol
add symbol in TableProps rowKey union type
1 parent 8c1e6e5 commit 3208710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface TableProps<RecordType = unknown> extends LegacyExpandableProps<
112112
children?: React.ReactNode;
113113
data?: readonly RecordType[];
114114
columns?: ColumnsType<RecordType>;
115-
rowKey?: string | GetRowKey<RecordType>;
115+
rowKey?: string | symbol | GetRowKey<RecordType>;
116116
tableLayout?: TableLayout;
117117

118118
// Fixed Columns

0 commit comments

Comments
 (0)