Skip to content

Commit d207818

Browse files
authored
feat(type): improve autocompletion (#977)
1 parent f921fdb commit d207818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export interface TableProps<RecordType = unknown>
9292
children?: React.ReactNode;
9393
data?: readonly RecordType[];
9494
columns?: ColumnsType<RecordType>;
95-
rowKey?: string | GetRowKey<RecordType>;
95+
rowKey?: (string & {}) | keyof RecordType | GetRowKey<RecordType>;
9696
tableLayout?: TableLayout;
9797

9898
// Fixed Columns
@@ -107,7 +107,7 @@ export interface TableProps<RecordType = unknown>
107107
// Additional Part
108108
footer?: PanelRender<RecordType>;
109109
summary?: (data: readonly RecordType[]) => React.ReactNode;
110-
caption?: string | React.ReactNode;
110+
caption?: React.ReactNode;
111111

112112
// Customize
113113
id?: string;

0 commit comments

Comments
 (0)