You’ve pitched a program of your own, written its types first, and built a skeleton that passes npm run check with at least one must working. A passing check tells you the code agrees with its types. It doesn’t tell you whether you can say why each type and each flag is there, or whether your types will help you when the program has to change.
In this review, you’ll explain your program to the mentor, then make a change you haven’t planned for and let the checker show you every place it touches. Start by gathering what the mentor will read.
Gather What the Mentor Reads
The mentor can’t open your project, so the review works from what you paste into the conversation. Have these ready before you start:
- Your pitch, with its must, should, and could lists
- Every
tsconfig.jsonin the project, one for each place your code runs - Your types module, the file where your data’s types live
- The
checkscript from yourpackage.json, so the mentor sees whatnpm run checkruns - A file tree of the project, without
node_modules, so the mentor can see whether every file is covered by a config - The code of the must that works, from where its data comes in to where it’s shown, with the HTML it uses if it runs in the browser