( props: Array<'id' | 'name' | 'role' | 'city'> = ['id', 'name', 'role', 'city'], )
| 40 | } |
| 41 | |
| 42 | export function basicColumns( |
| 43 | props: Array<'id' | 'name' | 'role' | 'city'> = ['id', 'name', 'role', 'city'], |
| 44 | ): ColumnData { |
| 45 | const names = { |
| 46 | id: 'ID', |
| 47 | name: 'Name', |
| 48 | role: 'Role', |
| 49 | city: 'City', |
| 50 | } as const; |
| 51 | return buildColumns(props.map(prop => ({ prop, name: names[prop] }))); |
| 52 | } |
| 53 | |
| 54 | export function buildRows( |
| 55 | count: number, |
no test coverage detected