Locked learning resources

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

Unlock This Lesson

Locked learning resources

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

Unlock This Lesson

Your First TypeScript (Summary)

In this video, you looked back at how you moved Spoke & Sprocket’s quote calculator from JavaScript to TypeScript, until the checker reported nothing and every quote matched Dee’s.

What You Can Do Now

  • Set up a small Node project to check and run TypeScript
  • Annotate functions and objects where inference needs help
  • Read a type error back to its cause
  • Say what any gives up

Two Times, Two Jobs

  • Before the program runs, the checker reads your types and reports what doesn’t fit. In your project, npm run check asks it, through tsc --noEmit.
  • While it runs, the types are gone, and plain JavaScript runs. node quote.ts runs the quotes.

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.