throw
↔ JS Keyword Statement to stop executing current function with user-defined Exception
References
Silent Fail
↔ Errorthrow
n in async code MISSING.catch()
"noImplicitAny": true
↔ tothrow
Exception when any Parameter inferred asany
"strictNullChecks": true
↔ tothrow
Exception when access Variable which potentially benull
/undefined
"noImplicitReturns": true
↔ tothrow
when any function branch missing explicit return (when at least one branch has explicit return; else it's okay to omit)