TSConfig

allowUnreachableCode

When:

  • undefined (default) provide suggestions as warnings to editors
  • true unreachable code is ignored
  • false raises compiler errors about unreachable code
  • These warnings are only about code which is provably unreachable due to the use of JavaScript syntax, for example: