-
Throwing an error as a placeholder in typescript development
Note - this post uses typescript 3.9.7 - error messages may vary in older versions.
While working on the same project as in my post about
console.log
, I came upon a small frustration.function noReturn(): number {}
rightly throws the error
Aug 10, 2020- tags:
- typescript