Only three statuses
Apply the same allowed statuses to bookings and status changes.
your task
In status.ts, allow only the three valid statuses used by the caller. Apply the rule to bookings and to setStatus. Both files must compile with both marked examples rejected.
The caller can set a misspelled status and create a booking with an unknown status. TypeScript reports the two unused @ts-expect-error comments because those lines were accepted.
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 yetstatus.ts
Expected result: no type errors.