-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code section below a never
expression should be marked as unreachable
#28859
Comments
I have a lint rule that forces you to write The CLI documentation contains a quick start guide: https://github.com/fimbullinter/wotan/blob/master/packages/wotan/README.md |
This seems to be implemented, so the |
Added in 3.7. |
Suggestion
According to the TypeScript handbook:
Which means that function or expression that "returns"
never
either terminates the program prematurely or never return (i.e. infinite loop), this leads to the section of code below it never get to execute.Examples
Checklist
My suggestion meets these guidelines:
Related issues
#12825
The text was updated successfully, but these errors were encountered: