Skip to content

Commit 6a6dbaa

Browse files
authored
chore: ts fix (#981)
* chore: ts fix * revert
1 parent d207818 commit 6a6dbaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Table.tsx

Lines changed: 1 addition & 1 deletion
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 & {}) | keyof RecordType | GetRowKey<RecordType>;
95+
rowKey?: string | keyof RecordType | GetRowKey<RecordType>;
9696
tableLayout?: TableLayout;
9797

9898
// Fixed Columns

src/hooks/useExpand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { findAllChildrenKeys, renderExpandIcon } from '../utils/expandUtil';
1414
import { getExpandableProps } from '../utils/legacyUtil';
1515

1616
export default function useExpand<RecordType>(
17-
props: TableProps,
17+
props: TableProps<RecordType>,
1818
mergedData: readonly RecordType[],
1919
getRowKey: GetRowKey<RecordType>,
2020
): [

0 commit comments

Comments
 (0)