The Typeinator
A Learning TypeScript > From JavaScript to TypeScript 🥗 appetizer project. You'll practice converting legacy JavaScript code to use newer ECMAScript syntax features.
Zap! Hiss... Bang!
A bolt of lightning strikes through the cloudless night. Whisks of smoke swirl around your feet, stepping out of the time travel orb onto the streets of Los Angeles. The year is 2004 and your mission is to prepare several JavaScript projects for the future of ECMAScript syntax features.
You are the Typeinator. 🤖
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/from-javascript-to-typescript/the-typeinator
shell
code projects/from-javascript-to-typescript/the-typeinator
In your terminal, run Jest via the test
script on whichever step you're working on.
For example, to start tests for the first step in watch mode:
shell
npm run test -- 1 --watch
shell
npm run test -- 1 --watch
Note: your terminal should be in the
the-typeinator
directory, not the root repository's directory.
Steps​
Notes​
- Don't import code from one step into another.