( getRowCell: Id | ((getCell: GetCell, rowId: Id) => RowValue) | undefined, defaultCellValue?: RowValue, )
| 219 | }; |
| 220 | |
| 221 | export const getRowCellFunction = <RowValue>( |
| 222 | getRowCell: Id | ((getCell: GetCell, rowId: Id) => RowValue) | undefined, |
| 223 | defaultCellValue?: RowValue, |
| 224 | ): ((getCell: GetCell, rowId: Id) => RowValue) => |
| 225 | isString(getRowCell) |
| 226 | ? (getCell: GetCell): RowValue => getCell(getRowCell) as any as RowValue |
| 227 | : (getRowCell ?? |
| 228 | ((): RowValue => defaultCellValue ?? (EMPTY_STRING as any as RowValue))); |
| 229 | |
| 230 | export const getCreateFunction = < |
| 231 | Thing extends |
no test coverage detected
searching dependent graphs…