Read the status from a save receipt

A promise and the receipt it supplies have different types.

your task

Make readStatus return the status from the actual receipt. Keep its input and return types. Both files must compile, and the caller’s marked plain-receipt call must still be rejected.

TypeScript reports an error at receipt.status in save.ts. The receipt has a status field. The caller passes a promise for that receipt. This exercise checks the types without running the helper. TypeScript Handbook on functions that return promises

Starter code
or press Ctrl EnterNot run yet

type check

Not run yetsave.ts

Expected result: no type errors.