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.
shellgit clone https://github.com/LearningTypeScript/projects learning-typescript-projectscd learning-typescript-projectsnpm i
shellgit clone https://github.com/LearningTypeScript/projects learning-typescript-projectscd learning-typescript-projectsnpm i
Open your editor in this project's directory:
shellcode projects/declaration-files/global-travels
shellcode 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:
shellnpm run tsc -- --project 01-passport-declarations --watch
shellnpm run tsc -- --project 01-passport-declarations --watch
Note: your terminal should be in the
global-travelsdirectory, not the root repository's directory.
Stepsβ
Notesβ
- Don't import code from one step into another.