({ row: rowCount, column: columnCount }: CellRange, { row, column }: Partial<CellRange>)
| 52 | type CustomTableProps = Omit<TableProps, "cellRange">; |
| 53 | |
| 54 | function verifyRanges({ row: rowCount, column: columnCount }: CellRange, { row, column }: Partial<CellRange>) { |
| 55 | if (row && (row < 0 || row > rowCount - 1)) { |
| 56 | console.warn(`Row "${row}" is out of range "${rowCount - 1}"`); |
| 57 | } |
| 58 | if (column && (column < 0 || column > columnCount - 1)) { |
| 59 | console.warn(`Column "${column}" is out range "${columnCount - 1}"`); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * @ignore |
no outgoing calls
no test coverage detected