File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export interface CellProps<RecordType extends DefaultRecordType> {
23
23
/** `column` index is the real show rowIndex */
24
24
index ?: number ;
25
25
/** the column index which cell in */
26
- colIndex : number ;
26
+ colIndex ? : number ;
27
27
/** the index of the record. For the render(value, record, renderIndex) */
28
28
renderIndex ?: number ;
29
29
dataIndex ?: DataIndex < RecordType > ;
@@ -55,7 +55,6 @@ export interface CellProps<RecordType extends DefaultRecordType> {
55
55
rowType ?: 'header' | 'body' | 'footer' ;
56
56
57
57
isSticky ?: boolean ;
58
- setRef ?: React . Ref < HTMLTableCellElement > ;
59
58
}
60
59
61
60
const getTitleFromCellRenderChildren = ( {
@@ -280,4 +279,6 @@ function Cell<RecordType>(
280
279
) ;
281
280
}
282
281
283
- export default React . memo ( React . forwardRef ( Cell ) ) ;
282
+ export default React . memo ( React . forwardRef ( Cell ) ) as < RecordType > (
283
+ props : CellProps < RecordType > & { ref ?: React . ForwardedRef < HTMLTableCellElement > } ,
284
+ ) => React . JSX . Element ;
You can’t perform that action at this time.
0 commit comments