Error for explicit return type with no return statements is misleading #53559
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Fix Available
A PR has been opened for this issue
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Currently in nightly, you'll get the error
But this error message is inaccurate, as you can now annotate with
unknown
.The text was updated successfully, but these errors were encountered: