diff --git a/src/Table.tsx b/src/Table.tsx index 9681ee305..0df0794e3 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -92,7 +92,7 @@ export interface TableProps children?: React.ReactNode; data?: readonly RecordType[]; columns?: ColumnsType; - rowKey?: (string & {}) | keyof RecordType | GetRowKey; + rowKey?: string | keyof RecordType | GetRowKey; tableLayout?: TableLayout; // Fixed Columns diff --git a/src/hooks/useExpand.ts b/src/hooks/useExpand.ts index d75df4ef0..98cf664a3 100644 --- a/src/hooks/useExpand.ts +++ b/src/hooks/useExpand.ts @@ -14,7 +14,7 @@ import { findAllChildrenKeys, renderExpandIcon } from '../utils/expandUtil'; import { getExpandableProps } from '../utils/legacyUtil'; export default function useExpand( - props: TableProps, + props: TableProps, mergedData: readonly RecordType[], getRowKey: GetRowKey, ): [