Various Lawyerings
A Learning TypeScript > Objects 🥗 appetizer project. You'll practice using aliased object types to represent shapes of data.
Hello, fellow lawyer. I'm glad you've chosen to join me in preparing to engage in legal battle. As you can see, I require your assistance in developing TypeScript projects to manage my files for this most important case.
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/objects/various-lawyerings
shellcode projects/objects/various-lawyerings
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-aviary-classification --watch
shellnpm run tsc -- --project 01-aviary-classification --watch
Note: your terminal should be in the
various-lawyeringsdirectory, not the root repository's directory.
Steps
Notes
- Don't import code from one step into another.
- Use object types (
type), not interfaces (interface)