Rows of room and seats
The position of a value can determine its type in a table row.
your task
Make the row type preserve the order of the name and seat count. Keep the table data and labels.ts. All three files must compile with the reversed row rejected.
Every row contains a room name followed by a seat count. TypeScript reports the call to roomLabel because it cannot tell which position contains text. The caller also tries adding a reversed row.
Check types asks the compiler to read your file. It lists each type error with its line. Your code does not run. The exercise is solved when there are no type errors.
Starter code
or press Ctrl EnterNot run yet
type check
Not run yetrows.ts
Expected result: no type errors.