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.

Starter code
or press Ctrl EnterNot run yet

type check

Not run yetstatus.ts

Expected result: no type errors.