Skip to main content

Modifiers of the Types

A Learning TypeScript > Type Modifiers 🥗 appetizer project.

Greetings, my fearless friend! My companions and I are a group of powerful beings tasked with safeguarding the safety of this realm and many others. Using the power revealed to by Castle TypeScript, we have seen the plots of my evil nemesis, Skeletype! Together we defend the universe and must stop those plots from becoming a reality!

We must gather our friends and gain understanding of our enemy. These small projects will help us learn the lay of the land and gain the upper hand in the inevitable battle. Please, join us!

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/type-modifiers/modifiers-of-the-types
shell
cd projects/type-modifiers/modifiers-of-the-types

In one 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-fabulous-secret-powers --watch
shell
npm run tsc -- --project 01-fabulous-secret-powers --watch

In another 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

Steps

Notes

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