Skip to content

Commit

Permalink
fix: tsc check error
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Nov 7, 2024
1 parent e3d3287 commit 04091fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Cell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface CellProps<RecordType extends DefaultRecordType> {
/** `column` index is the real show rowIndex */
index?: number;
/** the column index which cell in */
colIndex: number;
colIndex?: number;
/** the index of the record. For the render(value, record, renderIndex) */
renderIndex?: number;
dataIndex?: DataIndex<RecordType>;
Expand Down Expand Up @@ -55,7 +55,6 @@ export interface CellProps<RecordType extends DefaultRecordType> {
rowType?: 'header' | 'body' | 'footer';

isSticky?: boolean;
setRef?: React.Ref<HTMLTableCellElement>;
}

const getTitleFromCellRenderChildren = ({
Expand Down Expand Up @@ -280,4 +279,6 @@ function Cell<RecordType>(
);
}

export default React.memo(React.forwardRef(Cell));
export default React.memo(React.forwardRef(Cell)) as <RecordType>(
props: CellProps<RecordType> & { ref?: React.ForwardedRef<HTMLTableCellElement> },
) => React.JSX.Element;

0 comments on commit 04091fc

Please sign in to comment.