(row: Global.Row, headings: Headings)
| 28 | } |
| 29 | |
| 30 | const convertRowToTable = (row: Global.Row, headings: Headings): Global.Table => |
| 31 | Array.from({length: row.length / headings.length}, (_, index) => |
| 32 | row.slice( |
| 33 | index * headings.length, |
| 34 | index * headings.length + headings.length, |
| 35 | ), |
| 36 | ); |
| 37 | |
| 38 | const convertTableToTemplates = ( |
| 39 | table: Global.Table, |