Level 1M8Lesson 8.2

beginner35 minby DevFox

Type errors vs runtime errors: why types vanish when the code runs

See the two kinds of error at their two moments: TypeScript’s while you type, Node’s while the program runs. Watch Node run a file TypeScript refused, with every type stripped out, and find the values no check can see, so you check them in code yourself.

  • Fundamentals
  • TypeScript
Type errors vs runtime errors: why types vanish when the code runs. Read this lesson at .