Skip to main content

Global Travels

A Learning TypeScript > Declaration Files πŸ₯— appetizer project. You'll practice using global type declaration for external global values.

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 pleasant. 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

Open your editor in this project's directory:

shell
code projects/declaration-files/global-travels
shell
code 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

Note: your terminal should be in the global-travels directory, not the root repository's directory.

Steps​

Notes​

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