feature request: always-throw functions detect in null check #16546
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Too Complex
An issue which adding support for may be too complex for the value it adds
currently null check can detect
throw
, such code will works.but when
throw
was wrapped in a function, it fails.TS2531: Object is possibly 'null'
now
throw()
will alwaysthrow
an exception in any condition, it's better if this could be detectedThe text was updated successfully, but these errors were encountered: