Write the type from two responses
Response examples show which fields may be missing or have different values.
your task
Change only the Booking type. Both supplied samples and the caller’s valid booking must compile. Keep all three marked bookings invalid.
The two supplied bookings disagree with the current Booking type. Compare their IDs, notes, and guest details. A missing field differs from a field containing null. The caller also documents the allowed statuses.
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 yetbooking.ts
Expected result: no type errors.