One shape for every booking
A booking’s type must describe the data its callers need.
your task
Make the Booking interface and sample agree with the caller. Keep the text doorSign returns. Both files must compile, and a booking without a guest must still be rejected.
The sample booking and the door sign disagree with Booking, the interface that lists required fields. The caller uses a seat count and expects every booking to name a guest.
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 yetbookings.ts
Expected result: no type errors.