Explain Your Own TypeScript Program

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.json in the project, one for each place your code runs
  • Your types module, the file where your data’s types live
  • The check script from your package.json, so the mentor sees what npm run check runs
  • 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

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.