Find the last line of the error
A type error at a function call can identify a field in the original data.
your task
Fix the field in the booking draft. Keep the call to saveBooking. The draft, API, and caller files must all compile.
TypeScript reports the save call on line 9 of draft.ts. Read that message from the bottom. It names the conflicting types and the field to inspect. api.ts describes the booking the service accepts.
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 yetdraft.ts
Expected result: no type errors.