Import what the module shares
A file can import only the names another file exports.
your task
Fix the imports and their uses in summary.ts. Keep priceLine, its booking parameter type, and its return type. All three files must compile with the caller’s marked call still rejected.
TypeScript reports two errors on the first import in summary.ts. One imported name has the wrong spelling. The other names a private helper. Read prices.ts to see what it makes available.
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 yetsummary.ts
Expected result: no type errors.