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-projectscd learning-typescript-projectsnpm i
shell
git clone https://github.com/LearningTypeScript/projects learning-typescript-projectscd learning-typescript-projectsnpm 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.