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.

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

Change your terminal directory to this project's:

shell
cd projects/declaration-files/global-travels
shell
cd projects/declaration-files/global-travels

In your terminal, run the TypeScript compiler via the tsc script within whichever step you're working on. For example, to start the TypeScript compiler on the first step in watch mode:

shell
npm run tsc -- --project 01-passport-declarations --watch
shell
npm run tsc -- --project 01-passport-declarations --watch

Steps​

Notes​

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