Skip to main content

Secret Messages

A Learning TypeScript > Configuration Options 🥗 appetizer project. You'll practice using aliased object types to represent shapes of data.

Psst! You! Hey, you! Are you who I think you are? Are you the messenger?

If so, good. Great. Magnificent. I have a series of secret messages I need you to encode.

We'll use TypeScript configuration options to do so. Don't ask any questions - just go along with it.

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/configuration-options/secret-messages
shell
cd projects/configuration-options/secret-messages

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-encoded-outputs --watch
shell
npm run tsc -- --project 01-encoded-outputs --watch

Steps

Notes

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