Skip to content

Commit

Permalink
feat: rowKey can be symbol
Browse files Browse the repository at this point in the history
add symbol in TableProps rowKey union type
  • Loading branch information
xyuanbuilds authored Oct 20, 2021
1 parent 8c1e6e5 commit 3208710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export interface TableProps<RecordType = unknown> extends LegacyExpandableProps<
children?: React.ReactNode;
data?: readonly RecordType[];
columns?: ColumnsType<RecordType>;
rowKey?: string | GetRowKey<RecordType>;
rowKey?: string | symbol | GetRowKey<RecordType>;
tableLayout?: TableLayout;

// Fixed Columns
Expand Down

0 comments on commit 3208710

Please sign in to comment.