(people: Person[])
| 12 | type PersonColumn = ColumnDef<Person, string | number | Person[] | undefined> |
| 13 | |
| 14 | function generateColumns(people: Person[]): PersonColumn[] { |
| 15 | const columnHelper = createColumnHelper<Person>() |
| 16 | const person = people[0] |
| 17 | return Object.keys(person).map((key) => { |
| 18 | const typedKey = key as personKeys |
| 19 | return columnHelper.accessor(typedKey, { id: typedKey }) |
| 20 | }) |
| 21 | } |
| 22 | |
| 23 | describe('RowSelection', () => { |
| 24 | describe('selectRowsFn', () => { |
no test coverage detected