Skip to main content

Global Travels

A Learning TypeScript > Declaration Files πŸ₯— appetizer project. You'll practice using aliased object types to represent shapes of data.

Hello, and welcome! Β‘Bienvenidos! いらっしゃいませ! Χ‘Χ¨Χ•Χš הבא!

We are so glad you're elected to travel with Type Air. We hope your trip through the type-safe skies is peasant. By the way, if there a software developer flying with us, please report to the front of the plane. We have some files we'd like your assistance with.

Setup​

If you haven't yet, set up the github.com/LearningTypeScript/projects repository locally.

git clone https://github.com/LearningTypeScript/projects learning-typescript-projects
cd learning-typescript-projects
npm i

Change your terminal directory to this project's:

cd projects/declaration-files/global-travels

Start the TypeScript compiler in watch mode:

tsc --watch

Steps​

Notes​

  • Don't import code from one step into another.